Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @jarith

    Participant

    Hmmm, I plugged in the code you suggested and it didn’t seem to remove the ‘private’ prefix. Adding in the code Konstantin suggested only brought back my original issue.

    Is there some place specific in the function.php I am supposed to be adding either of these? Or is it another function.php file other than the one in my theme?

    Thanks for all the help.

    @jarith

    Participant

    Thank you! You reminded me of some code that I had inserted into functions.php to try to hide the ‘private’ prefix that would show up on forums that were marked that way. I had found the code below on another forum.

    Now I just have to figure out a way to still hide the prefix and not repeat this again.

    function the_title_trim($title) {
    $title = attribute_escape($title);
    $findthese = array(
    ‘#Protected:#’,
    ‘#Private:#’
    );
    $replacewith = array(
    ”, // What to replace “Protected:” with
    ” // What to replace “Private:” with
    );
    $title = preg_replace($findthese, $replacewith, $title);
    return $title;
    }

    @jarith

    Participant

    Anyone?

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar