Skip to:
Content
Pages
Categories
Search
Top
Bottom

forum title in topics page

  • @devansh1995

    Participant

    hello all .. i have hidden using css bbpress header which shows activity like “this topic was updated by……” because it was useless to me and my forum was not showing forum title in topics pages. However,now i want to show forum title only in header of topics page. please let me know how can i achieve that.

    My site link – https://castudyweb.com/ca-final-study-room

Viewing 9 replies - 1 through 9 (of 9 total)
  • @robin-w

    Moderator

    ok, so for the example you give, what do you want to hide?

    @devansh1995

    Participant

    i don’t want to hide anything. i want to show forum title above topic. In forum where that topic is posted.

    @robin-w

    Moderator

    sorry can you be specific with an example please – eg I want xx above the words YY on page zz

    @devansh1995

    Participant

    i want forum title above the words in header on single topic page

    @robin-w

    Moderator

    ok, so this is a single topic page – yes ?

    Pre-acquisition dividend

    so where are the words ‘in header’ or where exactly do you want these words?

    @devansh1995

    Participant

    These words are fine. People dont know in which forum this topic is posted. When user is on single topic page.

    @robin-w

    Moderator

    Put this in your child theme’s function file – or use

    Code Snippets

    add_action ('bbp_template_before_replies_loop' ,'rew_show_forum' ) ;
    
    function rew_show_forum () {
    	$forum_id = bbp_get_topic_forum_id() ;
    	$title = bbp_get_forum_title($forum_id) ;
    	echo '<div class="rew-in-forum">In forum : '.$title.'</div>' ;
    	
    }

    @devansh1995

    Participant

    woww .. it worked. exactly what i wanted. thanks a lot again ..

    have a nice day..

    stay home save lives.

    @robin-w

    Moderator

    🙂

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