Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to add a slug to nav and link to a WPMU page


Tom
Participant

@jeffreeeeey

OK After a lot of messing about with that code mate, I’ve finally got it.

The link I was trying to add was ‘prizes’, and prizes page had the slug ‘prizes’. Here’s what I had to do-

In my header.php I added:

<li<?php if ( is_page( BP_prizes_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo BP_prizes_SLUG ?>" title="<?php _e( 'prizes', 'buddypress' ) ?>"><?php _e( 'prizes', 'buddypress' ) ?></a></li>

And in wp-config.php I added:

// Page slug naming for top nav
define ( "BP_prizes_SLUG", 'prizes' );

Working fine now. Thanks for the guidance :-)

Skip to toolbar