Offcanvas Menu Icon And Color Of Closing (x) - Documentation Issue - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Offcanvas Menu Icon And Color Of Closing (x) - Documentation Issue

JG

James Gravert

Helix Framework 5 months 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!

0
8 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #192788

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.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 5 months ago #192794

Hi James,

explanation is simple.

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

1
JG
James Gravert
Accepted Answer
5 months ago #192789

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!

0
JG
James Gravert
Accepted Answer
5 months ago #192795

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!

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 5 months ago #192796

Documenation updated, I removed !important indeed.

Thanks.

Please mark topic as solved

1
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #192916

Hi James,

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

1
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #193051

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.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #193065

Thanks for accepting the answer.

0