Clear background for hamburger menue icon

Hey I have found topics about changing the colour of the hamburger menu colour but i want to know how I can make the background of the hamburger icon completely transparent always but change the icon colour for static and hover?

Cheers!

Hi there,

Please try this code in the Global CSS:

.x-btn-navbar.collapsed {
    background-color: transparent;
    box-shadow: none;
    transition: all 0.4s ease;
}

.x-btn-navbar.collapsed:hover {
    background-color: #dd3936;
    box-shadow: 0 2px 0 0 rgba(0,0,0,0.25);
}

Here are some reference links related to the suggestions above:

Hope this helps.

1 Like

Hi thanks for this :slight_smile: unfortunately on my mobile the whole button is transparent on mobile devices? Also when the menu is clicked on the background goes dark grey with a white icon?

Hi again,

Try this instead:

.x-btn-navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    transition: all 0.4s ease !important;;
}

.x-btn-navbar i {
  color: #fff !important;
}

Hope this helps!

1 Like

Perfect! Thanks so much :slight_smile:

You are most welcome. :slightly_smiling_face:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.