Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Topic Starter label around topic authors avatar in topic replies


  • Robkk
    Moderator

    @robkk

    I wonder if i could add a function that displays a topic starter label for any topic author in a topic.

    It would be cool so that say 5 pages in a topic, you could always know who started the topic if they kept the conversation going.

    I know the function would most likely be put in a theme functions.php but i wonder if it could go into loop-single-reply.php

    I feel like the function would use the topic started by function, mainly get_topic_author

    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>

    IT would be a nice feature to have

    any help??

Viewing 2 replies - 26 through 27 (of 27 total)

  • robertherold
    Participant

    @robertherold

    I did not do anything! 🙂

    But I was able to solve it with css:

    .bbp-search-results .bbp-topic-author span.topic-author,
    .bbp-search-results .topic-author span.topic-author {
    	display: inline-block;
    }
    
    .bbp-search-results span.topic-author {
    	display: none;
    }

    I hide span.topic-authors from the search results page and left only within .bbp-topic-author and within .topic-author.


    Robin W
    Moderator

    @robin-w

    🙂

Viewing 2 replies - 26 through 27 (of 27 total)
  • You must be logged in to reply to this topic.
Skip to toolbar