New page in Nav Menu
-
Hi guys,
I would like to add a custom page to main menu.
Problem is, when i do the following:
<?php
function add_about_to_main_menu() {
$class = (bp_is_page(‘about’)) ? ‘ class=”selected” ‘ : ”;
echo ‘<li ‘ . $class. ‘>‘ . __( ‘About’, ‘buddypress’ ) .’‘;
}
add_action(‘bp_nav_items’,’add_about_to_main_menu’);
?>
it shows up in main menu but i get some strange widgets and “welcome” on that page without adding something in code.
I just want a blank page in which I can put in my own code..
When clicking on a standard page the button is coloured, when I click on my custom page button is not coloured? Any Idea?
- The topic ‘New page in Nav Menu’ is closed to new replies.