Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove title & Info area


  • ulasyener
    Participant

    @ulasyener

    Hello,

    Can you suggest a way to remove highlighted sections on the attached picture?

    Forum Screenshot

    Thanks in advance.

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

  • ulasyener
    Participant

    @ulasyener

    Sorry for the language.

    “Tanisma Alani” is a topic

    and second area’s translation is “Viewing one topic (A total of 1)”


    Robin W
    Moderator

    @robin-w

    Do you want to remove these from all bbpress pages ie forums, topics, profiles etc. ot just from a particular area, eg just from individual topics


    ulasyener
    Participant

    @ulasyener

    Thanks for your response. I want to remove from all bbpress pages.


    ulasyener
    Participant

    @ulasyener

    Any suggestions will be highly appreciated 🙂

    Thank you.


    Robin W
    Moderator

    @robin-w

    sorry am tied up elsewhere, but will come back in the next day or so


    Robin W
    Moderator

    @robin-w

    ok the title comes form your theme, so I can’t help precisely with what to do but you should look in the page.php file or similar and find

    <h1 class=”entry-title”><?php the_title(); ?></h1>

    or something similar.

    Come back with the lines and a few before and after and I’ll try and help further, but many themes are very complicated!

    on the second issue, put the following in your functions file

    Function hide_topic_display ($retstr){
    	$retstr = '' ;
    	return $retstr ;
    }
    	
    add_filter( 'bbp_get_forum_pagination_count', 'hide_topic_display' );
    

    Functions files and child themes – explained !


    ulasyener
    Participant

    @ulasyener

    Both worked perfectly! Big thanks.

    One last question;

    What shall we add to deactivate pagination counts for replies aswell? (When i click the topics, i still see them.

    Thanks again for your time & assistance.


    Robin W
    Moderator

    @robin-w

    just add a line

    add_filter( 'bbp_get_topic_pagination_count', 'hide_topic_display' );
    

    so you end up with

    Function hide_topic_display ($retstr){
    	$retstr = '' ;
    	return $retstr ;
    }
    	
    add_filter( 'bbp_get_forum_pagination_count', 'hide_topic_display' );
    add_filter( 'bbp_get_topic_pagination_count', 'hide_topic_display' );
    
    

    That should work !

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