微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在/ div wordpress主题主页中隐藏#text

如何解决在/ div wordpress主题主页中隐藏#text

我们使用wordpress运行网站,并使用模板进行设计。

在我们的主页上,我们滚动显示博客文章,其中包括标题,作者/文章信息,阅读时间和“节选”?

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

blog-post-content-list-sider是div,文本只是其中的#text。

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

这是1 blog-post-content-list-sider

代码

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

<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>

解决方法

编辑:

我测试了此CSS代码,并且可以正常工作。 Codepen link here 请尝试

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

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?