Tuesday, January 10, 2012

How to Remove two Hard-Coded Home in wordpress navigation bar

How to Remove two home link in wordpress navigation bar.

There are so many wordpress sites , blogs and forums try to explain how to remove home link in wordpress navigation menu , if you create a static page for your wordpress blog or wordpress site , you will get two home link in main navigation bar, so here im try to explain how i remove the first Home link, the other blogs try to explain something but i realize its not working in wordpress 3.3 and above.

http://en.support.wordpress.com/pages/front-page/ -  this link will help you to set static home page for wordpress



once you set a static home page , there are two home page will be display in main navigation bar, one is wordpress default and another is which is set by you. if you follow the wordpress default home as your static homepage. then you won't face this two home page problem, if you set your new page as static page , you will face this problem.  so here we go,

go to your FTP -  /wp-content/themes/themefolder/ - here i choose  /wp-content/themes/twentyeleven/functions.php - download this php file and open it. you will see below code line nearly 358 , edit it and upload it. thats it.

open functions.php  in /wp-content/themes/twentyeleven/  and change $args['show_home'] = true; to  $args['show_home'] = false;  

once you upload the file i to same folder and referesh your site, you wont see the first home link anymore..