Skip to:
Content
Pages
Categories
Search
Top
Bottom

This Forum Is Empty


  • DamnDramaQueen
    Participant

    @damndramaqueen

    Hi bbpress,

    I would like to change the phase ” This forum is empty “, can you help me to locate which file and the directory to change it from?

    Please advise for help, thanks,

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

  • Robin W
    Moderator

    @robin-w

    it is in

    bbpress\includes\forums\template.php line 2021

    But the easiest way to change it is to put this into your functions file :

    function change_translate_text( $translated_text ) {
    	$text = 'This forum is empty.' ;
    	if ( $translated_text == $text ) $translated_text = 'new text here' ;
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    
    

    and change ‘new text here’ to the wording you want


    DamnDramaQueen
    Participant

    @damndramaqueen

    Hi Robin,

    You safe me a lot of time, been searching everywhere for it. You helped me big time! 🙂

    btw, I will put this file along with others in the child-theme directory. This way is easy to remembered.

    Thank you so MUCH for your great help 🙂 You Rock Big Time!

    Have a wonderful day.


    Robin W
    Moderator

    @robin-w

    No problem, and thanks for your kind words – glad I was able to help !

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