Re: How to add a slug to nav and link to a WPMU page
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