Offcanvas Menu Icon and Color of Closing (x) - Documentation Issue - Forum | JoomShaper
Solved Helix Framework

Offcanvas Menu Icon and Color of Closing (x) - Documentation Issue

Asked by James Gravert 1 year ago Last activity 1 year ago

I was following the Customization Tips for the Offcanvas Menu color of closing (x). Documentation here: https://www.joomshaper.com/documentation/helix-framework/customization-tips

I'm using the Helix Ultimate Template, specifically the 'stratos' Template.

I was able to change the burger-icon color using:

.burger-icon > span {background-color: black !important;}

However this also changes the closing (x) color. Which is the same as the background of the offcanvas menu so you cannot see it.

I tried using the recommended:

.offcanvas-active .burger-icon > span,
#modal-menu-toggler.active .burger-icon > span 
{ background-color: red;}

Which doesn't work.

What ended up working was:

.burger-icon > span {
  background-color: black;
}

.offcanvas-active .burger-icon > span {
  background-color: red;
}

So is the documentation incorrect? Or is there something special/different about the 'stratos' Template that makes the closing (x) different?

If what I'm using looks fine to you I'm OK with it. If what you have in your documentation is correct and should work then perhaps something is wrong with the template, in which case I'd like to get corrected. Or if the 'stratos' template is just different somehow, is there alternative documentation for it I can reference for other changes I'd like to make?

Thank you!

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Hi James,

explanation is simple.

Becuase you used !important value, it forced black color for .burger-icon > span in all cases.

5 more replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us, and sorry for your issue. No, the documentation is not incorrect. Sometimes, CSS classes are different for different templates, which is why it may not work for your site. Is this ok now? Or do you need any further help? Please feel free to ask me here.

-Regards.

James Gravert Asked this

What I have now works. So I'm good using what I have. Just didn't know if I should be looking at different documentation or if there was an issue on my site.

Thank you!

James Gravert Asked this

Hi Paul,

That makes more sense. I was going purely off the guide. And it messed me up.

The guide says to do this for the hamburger menu:

.burger-icon > span {background-color: white !important;}

Which indeed has the !important value. I was not thinking when I added the code from the documentation for the red (x). So I didn't think to remove the !important then.

When I was fiddling with it I didn't include the !important back in, so my code worked then.

I just tried the recommendation from the documentation without the !important:

.offcanvas-active .burger-icon > span,
#modal-menu-toggler.active .burger-icon > span 
{ background-color: red;}

This does work now. Being tired doesn't help matters. Duh!!

Thank you!

Paul Frankowski Senior Staff
1 year ago · edited

Documenation updated, I removed !important indeed.

Thanks.

Please mark topic as solved

Mehtaz Afsana Borsha Staff

Hi James,

Is this solved now? If yes, you can then close this post by accepting the answer.

Mehtaz Afsana Borsha Staff

Hi James,

You can find the accepted button in the comment. As this issue is solved, you can click on it to close this post.

Thanks for your cooperation.

Mehtaz Afsana Borsha Staff

Thanks for accepting the answer.

Log in to reply.