Revisit hamburger color

Now that blocs 4 is here I would like to revisit how to change the hamburger colors. There used to be an appearance to change from light to dark but that no longer is there in blocs 4.

So, my first question how to change the hamburger from light to dark in blocs 4?

Secondly, I would like to pick my own color for the hamburger. I have seen some posts that read I must change the page settings like in the following post.

Hamburger Color

Is this still the case and if so do I need to add the code to all pages?

Thanks

1 Like

Hi, Eagle!

Here is a file that you need to unzip and attach to your project:
toggle.css.zip (847 Bytes)

Then you need to add class custom-toggler to your nav-toggle:

You can change the colour of the hamburger by editing the toggle.css file and changing highlighted values:


after that you will just need to reattach the file and launch the preview mode

3 Likes

you are also able to customise the hamburger by changing stroke width value etc.

Thanks, that took care of it.

2 Likes

You are welcome!

Thanks! That was of great help. But I didn’t get it to work with the Thick Hamburger. I think I might change the number 0.5 after the RGB numbers? Am I right and in that case do you know to what number?
Thanks?

You need to change stroke-width value

Do you know what value I should use?

While we are on this subject - if anyone has a simile way to replace the hamburger and close icon with a custom made one please

I know this is an older post, but thank you for this, @EffexorXR. Instead of linking to the file, I just pasted the code into the head. It worked like a charm!

1 Like