Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6397

    Hi,

    how could I make this, so if I click for example “contact” in the sub menu, so then the word “contact” in the sub menu bar is in my special color, too?

    The reason: I have made a new subnavigation from your submenu with own items, and they should be “active” in a certain color, too, when a special page of them is clicked in the sub menu (like it is the behaviour of the main menu).

    Thanks.

    #53999

    Hey,

    you can use following code:

    #header .submenu .menu li.current-menu-item a {
    color: #fff;
    }

    #54000

    Hi Dude,

    I was wondering why in Corona that the ‘Home’ link doesn’t use: li.current-menu-item

    This means that not only in the submenu but in the mainmenu the Home link never gets highlighted.

    Of course it seems to be a custom link as it is added in the WP-Menus.

    Anyway to highlight it?

    Thanks…

    #54001

    If you’re using the menu manager/builder all links (main menu & sub menu) support these classes. I.e. the demo “Home” link looks like:

    <li id="menu-item-511" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-511">
    <a href="http://www.kriesi.at/themes/corona/">Home</a>
    </li>

    As you can see the list item has the class “current-menu-item”.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Color for activated SUBMENU link?’ is closed to new replies.