Skip to:
Content
Pages
Categories
Search
Top
Bottom

Renaming a page title


  • reprocessor
    Participant

    @reprocessor

    Evenin all!

    I’ve just changed my ‘Blog’ link on the main navigation to ‘news’. When I click the link it still has ‘Blog’ as the page title – any idea how to change this? Any help would be just dandy :)

    Cheers,

    Phil

    I’ve since found out how to do this but would love to know how to do it for the members directory and the groups pages also – can’t find the code anywhere :(

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think this should work if you create a new file called change-to-news.php and put the contents in it and then drop it in your /mu-plugins/ folder:

    <?php

    function change_to_news() {
    return 'news';
    }

    add_filter( 'bp_home_blog_slug', 'change_to_news' );

    ?>

    Hold on…that might now work. Looking now.

    Trent


    reprocessor
    Participant

    @reprocessor

    Hi Trent, I found it!!!

    It was in the bp-(*insert core, groups or blogs here*)/directories/bp-(*insert core, groups or blogs here*)-(*insert core, groups or blogs here*).php

    Easy when you trawl for the answer LOL :)

    Cheers for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Renaming a page title’ is closed to new replies.
Skip to toolbar