Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private: Private: forumsname


  • alanbin
    Participant

    @alanbin

    I have installed a private forum, means the visiblity is private. It is a parents-forum containing other forums.

    I have a little problem with it now: In the headline of the Forum the word “privat” comes twice and it looks a bit odd. How can I change “Private: Private: forumsname” to “Private: forumsname”. Or is there any chance to delete the words “private” completly.
    I don’t even find the php-file where this is handled.

    Sorry for my bad english. It’s not my language.

    Thank you!

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

  • Robin W
    Moderator

    @robin-w

    put the following in your functions file

    add_filter('protected_title_format', 'ntwb_remove_protected_title');
    function ntwb_remove_protected_title($title) {
    	return '%s';
    }
     
    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }
    
    

    Functions files and child themes – explained !


    alanbin
    Participant

    @alanbin

    Thank you very much, Robin, but unfortunately it doesn’t work. I did something wrong. Following error occurs: “Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /homepages/36/d223843881/htdocs/clickandbuilds/JointheEvolutionRevolution/wp-content/themes/Divi-child/functions.php on line 13”

    Line 13 starts with: function ntwb_remove_protected_title($title) {

    I copied it into the functions.php in my child-theme. I think I have to copy it to another place…but whereto?

    All the best
    Angelika


    alanbin
    Participant

    @alanbin

    It works! It works! It works!!!!

    A big THANK YOU to Robin W.


    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed !

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