Display {{recent_activity}} without Comments count?

5 Kommentare

  • Vladan Jovic
    Community Moderator

    Hi Eura, please try with this code at the end of your CSS

     

    .recent-activity-item-comment span {
    display: none;
    }
    3
  • Eura Szuwalski

    That works! Thanks, Vladan! 

    1
  • Tami Settergren

    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?

    0
  • Vladan Jovic
    Community Moderator

    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. ;)

    0
  • Tami Settergren

    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.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk