Kami menjalankan situs dengan WordPress dan menggunakan template untuk desain kami.

Di beranda kami, kami memiliki gulungan posting blog kami yang mencakup judul, info penulis/posting, waktu membaca, dan "kutipan"?

Kami mencoba untuk menyingkirkan "kutipan"

blog-post-content-list-sider adalah div dan teks hanyalah #teks di dalamnya.

Semua yang saya cari adalah sesuatu seperti .blog-post-content-list-sider { display: none; } tetapi itu akan menyembunyikan semuanya, bukan hanya satu aspeknya (jika saya mengerti dengan benar)

Ini adalah kode untuk 1 blog-post-content-list-sider

Bagian yang dimulai dengan "A Cutting-Edge" adalah teks yang perlu saya hapus dari setiap posting di halaman kami.

<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>
0
Scott 10 November 2020, 21:13

1 menjawab

Jawaban Terbaik

EDIT:

Saya menguji kode CSS ini dan berhasil. Tautan kodepen di sini Silakan coba

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

.blog-post-content-list-sider>*{
  visibility:visible;
}
0
Ozgur Sar 11 November 2020, 19:04