Support » Fixing WordPress » How to apply new class to top menu for inner pages

  • Default top menu is on header.php, I have customize the default top menu class and styles..

    Here,

    I added top menu to my page and remove all all page by using css. like

    .page-id-89 .page-item-25, .page-id-89 .page-item-65 {
        display: none;
    }
    
    .page-id-89 .page-item-219
    {
    	display:block;
    }
    <?php wp_nav_menu(
    	array(
    		'theme_location' => 'top-menu'
    	));
    ?>

    and my question is, how to apply new style(CSS Classes) for top menu which is in inner page.

    For example. top menu div have ‘menu’ class. Like that i want to apply new class for top menu.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to apply new class to top menu for inner pages’ is closed to new replies.