Ok, so its another new Wordpress site, and everytime it seems we have to edit and hide some links in the main menu. Sure goes the same routine. But something was different this time for the template - Hypnosis-Special 1.0 by HypnoBusters.
Looking in the header.php file for wp_list_pages('title_li='); did not yield any results. What do we do then?
Behold the functions.php file.
Steps:
1. Go to Wordpress admin Appearances->Editor->Theme Functions (functions.php)
2. To hide the 'Home' link, go to about line 6, change 'menu.showHome' => false, to 'menu.showHome' => true
Hide 'HOME' link (functions.php - Line 6) |
3. To exclude other pages from the main menu, search for wp_list_pages('title_li=') in the same functions.php file.
Found at line 518 |
4. Proceed to exclude the page links you do not need. Change wp_list_pages('title_li=') to wp_list_pages('title_li=&exclude=135,130'); to exclude pages 135 and 130 for example.
5. Finally, go to Wordpress Admin Settings->Reading->Front page displays to select your static Front Page.
Then you are good to go...
No comments:
Post a Comment
Comments will be moderated.
You can always click 'Contact me' link to get in touch directly.