Nav-pills No Longer Works - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Nav-pills No Longer Works

SS

Saint Maur International School

Template 2 years ago

I just noticed that the nav-pills class suffix no longer display a menu horizontally. How can I fix this? (see the top menu here

  • Contact
  • Calendar
  • Veracross
  • Donate)
0
3 Answers
Pavel
Pavel
Accepted Answer
2 years ago #119429

Hi.

nav-pills in the form as you trying to use it is an obsolete from Bootstrap 3, working via float property. It was CSS hack, at the time when there were no modern CSS modules for building a layout. As far as I see, you have reproduced this using your custom code. But in fact, it does not make sense to be reproduced.

You can add any of your own class to the module/menu and use one, simple CSS line instead of a whole bunch of code that you added. As I see wholetopmenu - your own module class. So the code will be like that:

.wholetopmenu .menu {
    flex-direction: row;
}

Or just add flex-row class to the menu in module settings. https://getbootstrap.com/docs/5.2/utilities/flex/

Tip: Learn Flex Box and CSS Grid modules.

The smaller the code the better the performance of the site.

And should not be using display: contents; for nav. This can cause problems with the accessibility on the MAC devices

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 2 years ago #119404

Hi there!

Thanks for reaching out to us.

Just checked and they are looking fine at my end: https://prnt.sc/ZkI56iT04hzx

Best Regards

0
SS
Saint Maur International School
Accepted Answer
2 years ago #119568

Thanks a lot Pavel for looking into it. I applied your recommendation and it seems to work.

0