Helix Ultimate Off Canvas Menu Increase Width And Increase Whitespace Between Sub-menu Items? - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Helix Ultimate Off Canvas Menu Increase Width And Increase Whitespace Between Sub-menu Items?

AD

Accredited Design

Helix Framework 3 years ago

Hello, I'm using Helix Ultimate 2.0.11 on a Joomla 4.2.3 site, and wish to increase the width of the Off-Canvas menu display. I'm referring to using only "Mega Menu" until responsive detects a smaller screen size, and then the off canvas menu icon is displayed instead of the Mega Menu, and then clicking the icon to open the off canvas menu. When viewing the menu content, I wish to increase the width since some sub-menu items are being wrapped to two lines. Separately, I'd also like to increase the white space between sub-menu items since they are somewhat crammed together vertically without much white space between them. I've poured over the forums and see a few old similar posts, but none of the custom CSS I try is working. Yes, I am clearing Joomla's cache and expired cache between each custom css change. For the example below, what happens is that when the off canvas menu is in full desktop mode showing only the Mega Menu, the off canvas menu is bleeding into the left side of the screen as a vertical white bar, even when off canvas should not be displayed at all:

.offcanvas-menu {
width: 400px !important;
}

Concerning the line height / white space between sub-menu items, I used Chrome's "Inspect" tool to find the following div, and then modified it in the Custom CSS:

.offcanvas-menu .offcanvas-inner ul.menu>li {
line-height: 150% !important;
}

This flat out doesn't work, and seems to not yield any change or difference.

Any help appreciated. Thank you!!

0
2 Answers
Ariba
Ariba
Accepted Answer
Support Agent 3 years ago #89698

Hello

Thank you for your query.

Please use the following css rules in custom css section of your template:

.offcanvas-menu { 
  width: 400px !important;
}
body.ltr.offcanvs-position-left .offcanvas-menu {
  left: -400px;
}

.offcanvas-menu .offcanvas-inner ul.menu > li a, .offcanvas-menu .offcanvas-inner ul.menu > li span {
  line-height: 150% !important;
}
0
AD
Accredited Design
Accepted Answer
3 years ago #89780

Thank you! This solution worked perfectly!

0