Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #289712

    Hi There,

    When we set

    #mobile-advanced .current-menu-item {
    background-color: #036b05;
    }

    all the ancestor are colored as well.

    How can we avoid that?

    Thanks

    #289786

    Hi elbnetz!

    Please add following code to Quick CSS

    .current-menu-item {
    background-color: #036b05;
    }

    Cheers!
    Yigit

    #289995
    This reply has been marked as private.
    #290036

    Hey!

    Please add following code to Quick CSS instead

    @media only screen and (max-width: 768px) {
    .current_page_ancestor > a {
    background-color: #036b05;
    }}

    Best regards,
    Yigit

    #290069

    Thanks, but no change.

    #290070

    Hey!

    It does work fine on my local installation. Can you post the link to your website so we can have a look?

    Regards,
    Yigit

    #290075
    This reply has been marked as private.
    #290097

    Hey!

    Please remove the code i posted here – https://kriesi.at/support/topic/how-to-highlight-active-menu-item/#post-289786
    and it should work fine. I have the other custom CSS code to Quick CSS field and when i disable the previous code, it does work fine

    Cheers!
    Yigit

    #290108
    This reply has been marked as private.
    #290122

    Hey!

    Please add following code to Quick CSS as well
    1-

    @media only screen and (max-width: 768px) {
    .current-menu-item > a{
    color: white!important;
    }}
    .sub-menu .current-menu-item .avia-menu-text {
    color: yellow!important;
    }

    Best regards,
    Yigit

    #290203
    This reply has been marked as private.
    #290491

    Hi!

    I have added one additional code to Quick CSS field. Please remove following code from custom.css file and it should work as desired

    @media only screen and (max-width: 768px) {
    .current_page_ancestor > a {
    background-color: #036b05;
    }}

    Best regards,
    Yigit

    #291147
    This reply has been marked as private.
    #291419

    Hi!

    Thank you for the update.

    We can’t see the actual website, it requires us to login. Please post the login details here.

    Cheers!
    Ismael

    #291441
    This reply has been marked as private.
    #291466

    Hi There,

    we have solved the problem ourselves, Thanks!

    #291483

    Hi!

    Glad you figured it out! Thanks for the update :)
    Let us know if you have any other questions or issues

    Regards,
    Yigit

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘How to highlight active menu item’ is closed to new replies.