Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to: Add a new menu section


Tutsie
Participant

@tutsie

create a file called new-menu-item.php and put it in your mu-plugins folder then add this code to your file:

<?php

function add_test_to_main_menu() {
echo '<li <a href="http://yoursite.com/Url-of-test/">Test</a></li>';

}

add_action('bp_nav_items', 'add_test_to_main_menu');

?>

Skip to toolbar