Css 在a/div wordpress主题主页中隐藏#文本

Css 在a/div wordpress主题主页中隐藏#文本,css,wordpress,Css,Wordpress,我们使用WordPress运行一个站点,并使用模板进行设计 在我们的主页上,我们有一个包含标题、作者/帖子信息、阅读时间和“摘录”的博客帖子滚动条 我们正在努力摆脱“摘录” blog post content list sider是div,文本只是其中的一个#文本 我查找的所有内容都类似于.blog post content list sider{display:none;},但这将隐藏整个内容,而不仅仅是其中的一个方面(如果我理解正确的话) 这是1博客文章内容列表侧的代码 以“尖端”开头的部分

我们使用WordPress运行一个站点,并使用模板进行设计

在我们的主页上,我们有一个包含标题、作者/帖子信息、阅读时间和“摘录”的博客帖子滚动条

我们正在努力摆脱“摘录”

blog post content list sider
是div,文本只是其中的一个#文本

我查找的所有内容都类似于
.blog post content list sider{display:none;}
,但这将隐藏整个内容,而不仅仅是其中的一个方面(如果我理解正确的话)

这是1
博客文章内容列表侧的代码

以“尖端”开头的部分是我需要从页面上的每篇文章中删除的文本

<div class="blog-post-content-list-sider">              
<div class="textalignleft subtitle_post_standard">
<a href="https://www.aimblog.io/category/artificial-intelligence/" title="View all posts in Artificial Intelligence">Artificial Intelligence</a>&nbsp;<a href="https://www.aimblog.io/category/emerging-technology/" title="View all posts in Emerging Technology">Emerging Technology</a>&nbsp;<a href="https://www.aimblog.io/category/medicine/" title="View all posts in Medicine">Medicine</a></div>       <h3 class="title_post_standard">            <a href="https://www.aimblog.io/2020/08/30/ai-the-key-to-fertility-treatment/">AI: The Key to Fertility Treatment?</a>      </h3>
<div class="fancy_one ig_meta_post_classic textaligncenter">    
<span><div class="indie_author">By <b> <div class="vcard author">
<a href="https://www.aimblog.io/author/sohail-merchant/" title="Posts by Sohail Merchant" rel="author">Sohail Merchant</a></div> </b> 
</div><div class="indie_on">on </div><div class="updated indie_date">   <b> August 30, 2020</b>     </div>  </span></div>
<span class="rt-reading-time" style="display: block;"><span class="rt-label rt-prefix">Reading Time: </span> <span class="rt-time">4</span> <span class="rt-label rt-postfix">minutes</span></span>
 A Cutting-Edge Discussion about AI’s Eminent Role in Reproduction Intro Artificial intelligence has been widely useful in the diagnosis and treatment of diseases. However, little has been discovered about its capabilities in the realm of fertility treatment. Well, all that is about to change because we will soon experience the first application of AI in […]            
 </div>

通过
2020年8月30日
阅读时间:4分钟
关于人工智能在生殖中的突出作用的前沿讨论介绍人工智能在疾病的诊断和治疗中有着广泛的应用。然而,很少有人发现它在生育治疗领域的能力。好吧,所有这些都将改变,因为我们很快将在[…]体验人工智能的第一次应用
编辑:

我测试了这个CSS代码,它工作正常。 请试一试

.blog-post-content-list-sider{
  visibility:hidden;
}

.blog-post-content-list-sider>*{
  visibility:visible;
}

#text
a
div
里面。博客文章内容列表侧边
?(或者,你可以,你知道,分享一些示例代码,这样我们就可以真正看到它本身了:P)你可以查看页面的源代码并突出显示摘录的部分吗?@cabrerahector是的@ozgur我已经将截图上传到imgur,但我没有足够的代表发布them@ozgur刚刚用代码更新了主帖子。对不起,我是新来的stack@Scott你试过我下面的答案了吗?我把它放在活动主题文件夹的function.php中了,对吗?我把它放在那个里了,并没有任何改变。谢谢你的建议。我下一步该怎么办?也许是插件?我建议了一个css专用的解决方案。请尝试已编辑的新解决方案。该解决方案删除了所有文本,如标题、作者、可单击标记等。我们的路径正确,但请单击代码笔链接。它只隐藏例外文本