Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sticky thread Issues


  • Dear_Maria
    Participant

    @dear_maria

    I have been searching for an answer to this, but so far been unlucky.

    At the moment, when I mark a topic as sticky or super sticky, the containing box changes colour. The topic does not display the words Sticky or or an Icon to let my users know it is a sticky topic.

    is there a way I can add this feature?

Viewing 3 replies - 1 through 3 (of 3 total)

  • Robin W
    Moderator

    @robin-w

    yes,

    add this to your functions file

    //This function adds the words sticky before the title
    function bbp_sticky_display () {
    		if(bbp_is_topic_sticky()) {
    		echo '<span class="sticky-display">' ;
    		echo 'Sticky Topic' ; 
    		echo '</span>' ;
    		}
    	}
    		
    add_action ('bbp_theme_before_topic_title', 'bbp_sticky_display') ;

    and this to your style.css

    #bbpress-forums .sticky-display{
    background: none repeat scroll 0 0 #5BB75B;
    color: #FFFFFF;
    display: in-line;
    padding: 5px;
    }

    you can change the words and styling to suit !


    Dear_Maria
    Participant

    @dear_maria

    Thank you so much,

    That worked perfectly!!!

    Thank you again!


    Robin W
    Moderator

    @robin-w

    that was quick – glad you’re fixed !

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