WordPress.org

Ready to get started?Download WordPress

Forums

How to apply new class to top menu for inner pages (2 posts)

  1. mohaideen
    Member
    Posted 3 months ago #

    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.

  2. esmi
    Forum Moderator
    Posted 3 months ago #

    What theme are you using? Where did you download it from?

Reply

You must log in to post.

About this Topic

Tags