Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 23h 30m 45s
Claim 50% off
Awaiting an answer Templates

Change Size of Hamburger Menu / Icon / Drawer and its Associated Close Button / 'X'

Asked by RC 2 years ago Last activity 2 years ago

Hello Joomshaper,

I would like to increase the size of the hamburger menu / icon / drawer and its associated close button / 'X'.

How do I do that?

Blessings,
Rob

4 replies

Atick Eashrak Shuvo Staff
RC Asked this

Hello Atick,

Thank you for the information. I was able to change the size. However, while the 'X' is larger, it is skewed as is shown in the documentation. I do not wish to have it "skewed". aka...the 'X' looks smaller on the left and larger on the right; non-proportional.

What are the settings to keep the 'X' proportional?

Blessings, Rob

RC Asked this

Hello Atick,

Thank you for the information. I was able to change the size. However, while the 'X' is larger, it is skewed as is shown in the documentation. I do not wish to have it "skewed". aka...the 'X' looks smaller on the left and larger on the right; non-proportional.

What are the settings to keep the 'X' proportional?

Blessings,
Rob

Atick Eashrak Shuvo Staff

Hello RC,

Apologize for the issue you're experiencing. Please add the following CSS code to your Template Options -> Custom Code -> Custom CSS

.close-offcanvas .burger-icon span{
    width: 40px;
}

This should resolve the problem. Please let us know if you need any further assistance!

Best regards

RC Asked this

Hello Atick,

I tried your coding and it did not make a change. I tried it on the 'template' and I tried it on the actually page but neither changed the 'X' to a proportional / non-skewed 'X'.

Any other thoughts?

Blessings,
Rob

Pavel

Hi. Try this

.offcanvas-active .burger-icon > span:nth-child(1) {
    transform: translate(0, 9px) rotate(-45deg);
}
RC Asked this

Hello Pavel,

I also tried your coding and it did not make a change. I tried it on the 'template' and I tried it on the actually page but neither changed the 'X' to a proportional / non-skewed 'X'.

Any other thoughts?

Blessings,
Rob

Pavel
2 years ago · edited

Hi.

When editing code, any caching and compression must be turned OFF (turn it OFF in template settings) and completely cleaned the Joomla cache and browser cache.

Find the element's code through the browser Dev Tools, select the value as you need, then copy result CSS code from Dev Tools and add to your CSS file

Log in to reply.