Display {{recent_activity}} without Comments count?
I'm trying to display the {{recent_activity}} on the help center home page without the comments icon or comment count. We are not using the Community settings so I would assume neither of those would display, yet they keep showing up.
I'm currently working on a sandbox site so we haven't gone live. I've successfully removed the comment icon by deleting the icon in the CSS, but can't seem to find where the number for the comment count is coming from.
I've tried $('.recent-activity-item-comment').hide(); and $('.recent-activity-item-comment').remove(); (Thanks to Wes), but those wouldn't work at all.
Zendesk, is there anything that I'm missing?
-
Hi Eura, please try with this code at the end of your CSS
.recent-activity-item-comment span {
display: none;
} -
That works! Thanks, Vladan!
-
That works for me, too --thanks!
I'd also like to hide the "Article created x days ago" item. Inspecting that element shows it as this:
<div class="recent-activity-item-time">Article created 4 days ago</div>
So I put this into my CSS:
.recent-activity-item-time {
display: none;
}But the "time" still shows. What am I missing?
-
Hey Tami, your code seems fine to me. Check is it placed at the end of your CSS file. Also you can try with:
.recent-activity-item-time {
display: none !important;
}Please let us know if this doesn't help. ;)
-
Hi Vladan,
I found another "recent activity time" style farther down in the CSS:
.recent-activity-item-time, .recent-activity-item-comment {
color: lighten($color_3, 20%);
display: inline-block;
font-size: 13px;
font-weight: 300;
}I changed the display line to "none", and that removed the "Article created x days ago" from my home page.
Please sign in to leave a comment.
5 Comments