Limit Menu Levels On Megamenu? - Question | JoomShaper

Limit Menu Levels On Megamenu?

IG

Ignacio Granados

Template 3 years ago

Hi,

I have a main menu with 3 levels (in joomla). Is it possible to limit the megamenu (template livesports) to only 2 fisrt levels (as you do in standard menu module in joola)?

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #84954

I assume that you want to hide it in Desktop view only:

@media (min-width: 840px) {
.sp-megamenu-parent .sp-dropdown.sp-dropdown-sub .sp-dropdown-inner,
body.ltr .sp-megamenu-parent .sp-dropdown .sp-dropdown-items .sp-has-child > a::after 
{display: none; visibility: hidden;}
}

Short info:

  1. 1st line of code: use CSS for screen size larger than 840px it means all Laptops and Desktops
  2. 2nd line of code: class of 3rd submenu box
  3. 3rd line of code: class of ">" arrow
  4. Hide above 2 & 3 elements.
  5. Close rule (1)
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #84853

Hi Ignacio,

so you want to hide submenu items from 3rd level, am I right? From Mega Menu settings it's not possible, the only way to hide them is by using extra Custom CSS that would hide from public menu items below 2nd level.

so you have to hide arrow and submenu for 3rd level. Probably it can be done in 4 lines of CSS code.

Helix Ultimate based template?

0
IG
Ignacio Granados
Accepted Answer
3 years ago #84898

Thanks, Paul.

Yes, I want to hide the 3erd level. Using CSS will be fine. I am using live Sport template (https://www.joomshaper.com/joomla-templates/livesports), based on Helix Ultimate. Could you share the proper CSS, please?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #84953

as 1step read: https://www.joomshaper.com/documentation/helix-framework/helix-ultimate-2/custom-code-css-js-meta

in case you do not know where to put below custom CSS.

0
IG
Ignacio Granados
Accepted Answer
3 years ago #84956

Thanks, Paul. It works great!

0