Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1442567

    Goodmorning,
    I need to change for mobile view the background color and font color of the menu items (particularly of the current selected menu item), but i cannot seem to make it work.
    Can you help me please?
    thank you very much

    #1442583

    Hey Qgrafica_7,

    Where can we see the elements in question?

    Best regards,
    Rikard

    #1442614

    Hi Rikard,
    more details in the private content, i added the link to the website and a screenshot of the target items.
    I need to change the styling of the menu items only on mobile, since i want different styling for desktop

    Thank you

    #1442668

    Hi,

    Thanks for that. Please try the following in Quick CSS under Enfold->General Styling:

    #av-burger-menu-ul .current-menu-item {
      background: red;
    }
    
    #av-burger-menu-ul .current-menu-itemn a {
      color: yellow !important;
    }

    Best regards,
    Rikard

    #1442848

    Hi, thank you very much.
    Only the top part of the code works, showing the current selected item as red background.
    I’d also need to change the hover color of all the elements.

    Also, how do i set different colors between desktop and mobile?
    Thanks

    #1442873

    Hi,

    Thanks for the update. Could you please add the code back in so that we can see why it’s not applying please?

    Best regards,
    Rikard

    #1442877

    hello,
    I did it
    Thank you

    #1442951

    Hi,

    Thanks for that. Please try this instead:

    @media only screen and (max-width: 767px) {
      #top #wrap_all .av-burger-overlay .av-burger-overlay-scroll #av-burger-menu-ul .current-menu-item {
        background: red;
      }
      #top #wrap_all .av-burger-overlay .av-burger-overlay-scroll #av-burger-menu-ul li.current-menu-item  a {
        font-size: 20px;
        color: yellow !important;
      }
    }

    Best regards,
    Rikard

    #1443198

    Unfortunately, that’s still incorrect, as I need to have the color change when I click on the menu to go to a page, rather than having the color change only when I’m already on that specific page.
    How should I proceed?
    thank you

    #1443262

    Hi,

    Thanks for the update. So you are looking to change the colour of the menu item when it’s actually tapped?

    Best regards,
    Rikard

    #1443377

    hello, exactly!
    thank you

    #1443443

    Hi,

    Thanks for the clarification. Please try this instead:

    @media only screen and (max-width: 767px) {
      #top #wrap_all .av-burger-overlay .av-burger-overlay-scroll #av-burger-menu-ul .current-menu-item {
        background: red;
      }
      #top #wrap_all .av-burger-overlay .av-burger-overlay-scroll #av-burger-menu-ul li a:active,  #top #wrap_all .av-burger-overlay .av-burger-overlay-scroll #av-burger-menu-ul li a:focus  {
        font-size: 20px;
        color: yellow !important;
      }
    }

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.