Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to remove avatars in the notice text area of a forum and a topic?

  • @wenlujon

    Participant

    in the notice text area of a forum, there’s message:
    “This forum contains xxx topics, and was last updated by”
    and there’s an avatar before the user, how to remove that?

    also, that’s the case for a topic, how to remove that?
    “This topic contains xxx replies, has xxx voice, and was last updated by”

    BTW,
    I managed to remove some avatars in other areas through this:

    
    .widget_display_topics  .bbp-author-avatar { display: none ! important; }
    .bbp-topic-started-by .bbp-author-avatar { display: none ! important; }
    .bbp-topic-freshness-author  .bbp-author-avatar { display: none ! important; }
    <code></code>

    reference:

    bbPress Styling Crib

Viewing 3 replies - 1 through 3 (of 3 total)
  • @robkk

    Moderator

    i think this does what you want.

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    function ja_return_blank() {
        return '';
    }

    @wenlujon

    Participant

    it works, thanks a lot. BTW, how to remove the avatar only (keep the message)?
    also, there’s also an avatar before the user if a reply was modified by the user, it will say:
    “This topic was modified 3 days, 23 hours ago by …”
    how to remove the avatar?

    @robkk

    Moderator

    use this CSS

    #bbpress-forums ul.bbp-reply-revision-log img.avatar,
     #bbpress-forums ul.bbp-topic-revision-log img.avatar,
     #bbpress-forums div.bbp-template-notice img.avatar {
      display: none!important;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar