Home › Forums › Jevelin Theme › Hamburger icon displays incorrectly after colour change
Home › Forums › Jevelin Theme › Hamburger icon displays incorrectly after colour change
Hello, I’ve changed the colour of the hamburger icon to black using this code:
#header-navigation-mobile .c-hamburger span,
#header-navigation-mobile .c-hamburger span::before,
#header-navigation-mobile .c-hamburger span::after {
background-color: #000 !important;
}
It has caused an issue where then the icon animates to “X”, the middle bar is still visible.
I tried the following code, which I found on this forum:
.c-hamburger–htx.is-active span {
background-color: none!important;
}
It didn’t make any difference though.
The site is http://simplyreaders.co.uk/
Thanks
Solution for this topic
Hi @ania_yot,
I hope you are well today and thank you for your question.
Please use the below shared CSS code.
#header-navigation-mobile .c-hamburger:not(.is-active) span,
#header-navigation-mobile .c-hamburger span::before,
#header-navigation-mobile .c-hamburger span::after {
background-color: #000 !important;
}
Best regards,
Shufflehound team
Hi, thank for your reply. I added the CSS in the CCS code in theme settings but there’s no change.
Thanks
Anna
It is not working on your website because you have also added some CSS code on your website using Yellow Pencil Editor that overwrites my provided CSS code.
To make it work, please remove the CSS code that you have applied to it using the Yellow Pencil Editor.
You can reset the Yellow Pencil editor as described in the below pages.
https://yellowpencil.waspthemes.com/docs/managing-changes-on-entire-website/
https://yellowpencil.waspthemes.com/docs/managing-the-element-styles/
That’s brilliant, thank you for your help it works 🙂
You are most welcome here 🙂
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.