2017-06-22 113 views
-2

我正在使用Wordpress,我想從頁腳中的框中刪除作者信息。 這是框的HTML代碼:從CSS中刪除文本

<footer class="entry-footer clearfix"> 
: :before 
<span class="entry-cats"> 
<span class="entry-label"> 
<i class="fa fa-tag"> 
: :before 
</i> 
Categorie: 
</span> 
<a href="http://ec2-52-57-169-182.eu-central-1.compute.amazonaws.com/categoria-quale-scegliere/">Quale scegliere</a> 
</span> 
<!--End .entry-tags--> 
<span class="entry-separator"> 
: :before 
/
</span> 
<a class="entry-comments" href="#">Nessuna risposta</a> 
<span class="entry-separator">/</span> 
di 
<a class="entry-author" href="http://ec2-52-57-169-182.eu-central-1.compute.amazonaws.com/author/user/">Admin</a> 
: :after 
</footer> 

這是我剛剛在CSS刪除作者姓名直接用的 Footer box

圖像:

.entry-author{ 
display:none !important; 
} 

現在我需要刪除「Nessuna risposta」和「di」(英文「by」)之間的斜線。 我不知道該怎麼做,因爲這是文字而不是課堂。 Firefox Inspector將文本顯示爲#text

如果您想直接在網站上觀看,請轉至here,稍後再往下瀏覽頁面。

謝謝。

回答

2

對於斜線這是a.entry-comments + span.entry-separator: { display: none; }

單詞「嘀」這將是最好的包裝在一個跨度,並指定一個類,你可以用display: none;隱藏。