Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to change the navigation text in 1.2.x themes

  • Avatar of zageek
    zageek
    Participant

    @zageek

    In the old themes all I did was poke around header.php and look for the bit that spits out nav and using something like the following:

    <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) : ?> class="selected"<?php endif; ?>><"<?php echo get_option('home') ?>/<?php echo BP_HOME_BLOG_SLUG ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e('YOURLABELNAME', 'buddypress' ) ?><>

    Which I got from WPMU dev(http://premium.wpmudev.org/forums/topic/premium-buddy-press-themes), and it worked fine.

    Now with the new 1.2.x parent theme I don’t se the same thing instead I see the following in header.php:

    <body <?php body_class(); ?>>
    <div id="page">

    <div id="header" role="banner">
    <div id="headerimg">
    <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>
    <hr />

    Wheres does the nav div get generated and how do I change the text associated with the nav items. I have already changed my post slugs, now I want the text displayed to match the post slug

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of stwc
    stwc
    Participant

    @stwc

    I just did this last night, using the .pot/.po/.mo thing, and I HIGHLY recommend grabbing poedit from Sourceforge rather than editing the text file manually. It pulls together all instances of a term and lets you edit once, rather than having to find them all.

    It’ll give you a couple of critical errors after you hit save to generate the .mo file — just go to the Catalog — Setiings dialog, change the Team to your website name and clear out the plural forms thing at the bottom, and all seems to work well.

    Then just add the bp-custom function to call the new language file and you’re good to go. Very easy, and I’ve changed a whole bunch of verbiage across my site, no problems.

    Avatar of zageek
    zageek
    Participant

    @zageek

    Thanks guys, @stwc I am going to try that right now

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

You must be logged in to reply to this topic.