how to remove Home link in main menu
-
I read few entries about how to remove Home link from main menu. you can create a Menu and remove your home link from there. that is easyer i think.
Create a New Menu lets say its name “My_main_menu”
Now add your pages and custome links you need on your main menu.
Goto your template folder and open header.php
replace your
<?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); ?>
with following
<?php wp_nav_menu( array( ‘menu’ => ‘My_main_menu’, ‘container_class’ => ‘menu‘, ‘theme_location’ => ‘primary’ , ‘container’ => ‘div’) ); ?>
more information can be found at my blog
[Link moderated]
- The topic ‘how to remove Home link in main menu’ is closed to new replies.