Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change title of ‘Forums’ to ‘Forum’


  • ollietubb1
    Participant

    @ollietubb1

    Hi,
    I cannot find a way to change title of ‘Forums’ to ‘Forum’.

    I have changed it in settings / forum root and forum single slug (i get this message – possible bbPress conflict: Forum slug and vice versa)

    Any suggestions please much appreciated?

    Thanks,
    Ollie

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

  • Robin W
    Moderator

    @robin-w

    add_filter(  'gettext',  'rew_bbpress_translate', 20 , 3  );
    
    function rew_bbpress_translate( $translated, $text, $domain ) {
    	if ($domain == 'bbpress') {
         $words = array(
                            
                            'Forums' => 'Forum'						
                 );
         $translated = str_replace(  array_keys($words),  $words,  $translated );
    	}
         return $translated;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets


    ollietubb1
    Participant

    @ollietubb1

    Thank you Robin,

    I have added the code in my child theme functions.php file.

    It hasn’t changed the page title though. Any further suggestions?

    Thanks,
    Ollie


    ollietubb1
    Participant

    @ollietubb1

    Sorry yes it has!

    Thank you, had some code in the wrong place in the functions file.

    Appreciate your help Robin 🙂


    Robin W
    Moderator

    @robin-w

    🙂

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