Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 05h 22m 40s
Claim 50% off
Solved Templates

Indicator bar above Single Menu Item Became Full Width of all Menu Items when Mega Menu Alignment set to Full

Asked by Joel C 4 years ago Last activity 4 years ago

Using Newsberg Template, have several mega menus in main menu. Originally had alignment option for these menus set to "Right", and a blue indicator bar nicely appears above the most recently selected menu item in the main menu. When I changed the mega menus alignment option to "Full", the blue bar now spans the entire width of All the main menu items, thus losing the indication of most recently selected menu item.
Seeking assistance in getting the highlight bar to span only the most recently selected menu item when Mega Menu Alignment set to Full.

Accepted answer

Marked as the solution
Toufiq Senior Staff

I have added css code inside the custom css file.

#sp-header #sp-menu .sp-megamenu-parent > li > a {
    padding: 0px 0px !important;
    margin: 0px 0px !important;
    position: relative;
}

Please check now. Thanks

4 more replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Will you please provide me the Joomla administrator access to check the issue? I will check & get back to you soon. 

Note: Can you share a screenshot that you want to do exactly.

-Thanks

Joel C Asked this

Thanks Toufiq - appreciate the help. I've setup an example of two main menu items that are mega menus, one using Right alignment, and other using Full alignment (Note- I'm planning to use Full on all the mega menu items).
This link shows result of invocation within the Right-aligned US RELIGION menu, and you'll see the blue bar is only above the US Religion menu item as expected: https://future.thearda.com/index.php/us-religion/group-profiles/denominations
This link shows result of invocation within the Full-aligned WORLD RELIGION menu, and the blue bar spans the width of all main menu items (unexpected) - if you watch the page rendering closely you'll notice the blue bar is first drawn just spanning WORLD RELIGION as expected but is quickly overwritten by the wider blue bar: https://future.thearda.com/index.php/world-religion/national-profiles

Access credentials to the site containing these examples is in hidden content.

Joel C Asked this

Thanks Toufiq! The position: relative setting is what was needed. Note that the custom.css file does not seem to load for some reason with the newsberg template, so I setup a custom-code.css file and load that file in the before head section - added the position: relative in there and worked. Not sure why issue only occurred with Full alignment. Appreciate the help, and thanks again.

Log in to reply.