Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #589473

    Hi,

    Added the following CSS to activate italic when a menu is selected:

    .main_menu ul:first-child > li.current_page_item > a {
        font-style: italic!important;
    }

    But, when entering a sub-page it does not work anymore.
    Any ideias how to activate on 2nd level pages also?
    Pages are already the correct attribute.

    Website is under maintenance – pls use login provided in private area.

    Thank you!

    #590538

    Hi!

    Try changing your code to:

    .main_menu ul:first-child > li.current-menu-item > a,
    .main_menu ul:first-child > li. current-menu-ancestor > a,
    .main_menu ul:first-child > li.current-menu-parent > a{
        font-style: italic!important;
    }

    Cheers!
    Josue

    #592304

    Hi Josue,

    Changed but did not worked. :-(
    Can you review it again pls?

    Thanks! Afonso

    #592357

    This will do it:

    .main_menu ul:first-child > li.current-menu-item > a,
    .main_menu ul:first-child > li.current-page-ancestor > a,
    .main_menu ul:first-child > li.current-menu-parent > a {
        font-style: italic!important;
        color: #333333;
    }
    #592721

    Hi Josue,

    Worked perfectly!

    Thank you!!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Menu buttons do not stay active on 2nd level pages’ is closed to new replies.