Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing the ‘Oh bother!’ Message

  • @cmsplay

    Participant

    Loving bbPress.

    We’ve set our fora (forums) to show only for logged-in users.

    When a visitor is not logged in and they click on the Fora link, bbPress shows the following message:

    Oh, bother! No forums were found here.

    We’d rather that the message said ‘Fora are viewable by logged in members’.

    How and where do we edit the ‘Oh bother!’ message? (Which might be the right CSS file?)

    Thank you.

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

    Moderator

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

    Code Snippets

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    and change the old text and new text to suit.

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