Horizontal menu Topic is solved

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
zinnorov
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sun Mar 26, 2023 7:13 pm

Horizontal menu

Post by zinnorov » Tue Mar 28, 2023 10:41 pm

Hey. I can't align the built-in menu horizontally. It's vertical every time. nav-pills or nav-tabs, the only difference is - it makes the menu background gray. Can Solidres or Quix override that? I use these two extensions only.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9744
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Horizontal menu

Post by AMurray » Wed Mar 29, 2023 9:34 am

Nav-pills was a CSS class in Joomla 3, Protostar but as far as I know, doesn't work in Joomla 4 (Cassiopeia). There are other methods for making the Menu module a horizontal menu with drop-down sub menus.

Can you confirm what Joomla version and template you're using?

These may help:
Regards - A Murray
General Support Moderator

zinnorov
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sun Mar 26, 2023 7:13 pm

Re: Horizontal menu

Post by zinnorov » Wed Mar 29, 2023 10:31 am

AMurray wrote:
Wed Mar 29, 2023 9:34 am
Nav-pills was a CSS class in Joomla 3, Protostar but as far as I know, doesn't work in Joomla 4 (Cassiopeia). There are other methods for making the Menu module a horizontal menu with drop-down sub menus.

Can you confirm what Joomla version and template you're using?

These may help:
Joomla 4.2.9 and Cassiopeia.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9744
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Horizontal menu

Post by AMurray » Wed Mar 29, 2023 10:50 am

Did the solutions in those links work? You configure the dropdown through the menu module.

If it was to work, I recall that it had a space preceding "nav" as in " nav-pills" but I'm not sure it will work in Cassiopeia.
Regards - A Murray
General Support Moderator

zinnorov
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sun Mar 26, 2023 7:13 pm

Re: Horizontal menu

Post by zinnorov » Wed Mar 29, 2023 10:53 am

I tried the links you provided, and the menu is still vertical.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9744
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Horizontal menu

Post by AMurray » Wed Mar 29, 2023 11:00 am

Did you put the menu module in the "menu" module position? That would be the first place to start. I don't know how to make it function any other way.

Is the site online (live) - can you provide a link to show us the behaviour you're seeing? Noting the menu will collapse to a vertical menu on mobile devices. Is that perhaps what you're seeing?

I thought this was a problem on a normal Cassiopeia template, but you're using Quix page builder, which might be part of the problem.
Regards - A Murray
General Support Moderator

zinnorov
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sun Mar 26, 2023 7:13 pm

Re: Horizontal menu

Post by zinnorov » Wed Mar 29, 2023 11:09 am

The site is offline currently. As I see, the Quix overrides the main CSS. It uses the "!important" tag in its CSS.

zinnorov
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sun Mar 26, 2023 7:13 pm

Re: Horizontal menu

Post by zinnorov » Wed Mar 29, 2023 11:22 am

So the problem was actually in template.min.css. The flex-direction in .mod-menu was set to column. I changed it to row, and it works!


Locked

Return to “General Questions/New to Joomla! 4.x”