• Hello, Can anybody help me in this problem guys?

    1 have so many pages.. but my pages are created using wordpress not by creating a php template..
    the problem is in my navigationmenu.. on my home page, I have 10 pages in my menu while in the other pages there are 12, 11 and the other has 14 depends on the page…
    I only have 1 navigation menu in the wordpress, that’s why I put all the pages in my navigation menu.. my question is, how can I hide or show the specific page on the menu bar when I am in the page…
    for example..
    on the hamepage..
    I have these pages
    home
    about us
    contact us
    news
    etc….

    but on the about page I have these…
    home
    company
    board members
    contact us
    etc..

    they are diffent navigation depends on the page,,
    How can I hide or how can I show the specific menu(pages) on their appropriate pages..

    thanks

Viewing 1 replies (of 1 total)
  • Thread Starter markyeoj

    (@markyeoj)

    here’s another if the the 1st one is not readable..
    I registered a navigation menu on functions.php

    if (function_exists('register_nav_menus')) {
    	register_nav_menus(
    		array(
    			'navlist' => 'Main Navigation Menu'
    			)
    			);
    		}

    and I called it in my sidebar.php
    <?php wp_nav_menu(array('menu'=>'Main Nav Menu'));?>

    now, how can I hide the other links on my sidebar menu? nad how can I show it if needed on thepage?

Viewing 1 replies (of 1 total)
  • The topic ‘Hiding a menu’ is closed to new replies.