Highlight active page in navigation add-on - Forum | JoomShaper
Staff replied SP Page Builder

Highlight active page in navigation add-on

Asked by Pieter Callebert 4 years ago Last activity 4 years ago

Hello community,
I am creating a personal header in SP Page Builder module.
On of the items is a menu bar. I tried to ise the great navigation add-on. To follow company standards I adjusted the CSS to create specific mark up. However I can't get the active page highlited in the navigation bar. So i mean , if you have ex Home - About- info... You are on the info page, then that value should be highligted in the navigation bar.
This is my CSS I tried in custom.css and in style tab of the navigation options.
I placed the problem in bold. Also all the code which I tried and failled so far.

www.tandheelkunde.ugent.be

a {
font-size: 20px;
font-family: "PannoTextMedium",Arial,sans-serif;
color: #1e64c8;
padding-top: 10px;
padding-bottom: 10px;
line-height:17px;
transition:none;

}

a:hover {
text-decoration: underline !important;
text-decoration-thickness: 0.1em;
text-underline-offset: 0.25em;
}
&.active > a {
text-decoration: underline !important;
text-decoration-thickness: 0.1em;
text-underline-offset: 0.25em;
}
a: active
li a: active
.active
.active > li a
a:hover a:active

non of them lets the active page get underlined?
What could I be doing wrong?

Thx a lot

7 replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Please check the screenshot and confirm me.

https://prnt.sc/9nhY99GuZQZ9

-Thanks

Pieter Callebert Asked this

Dear Toufoq,

Indeed that is correct, this is the menu bar I mean. you clearly see the active page (in screen shot: Nieuws)
Does not get highlighted
As it is just a part, there will be in total 7 values in the menu bar, a highlist is upmost convenient.

Thx,
Pieter

Toufiq Senior Staff
4 years ago · edited

Did you install Page Builder 4 before inside Page Builder 3? Then did you downgrade page builder 4 to 3?

Pieter Callebert Asked this

Oh no, Yes I did... Cause there are/were rather big issues on the module part with SPPB4

Toufiq Senior Staff

You shouldn't use Page Builder 4 beta inside the page builder 3. Please roll back your previous backup. Thanks

Pieter Callebert Asked this

I made a fresh Joola installation. Stiull the same problem occurs I can't color the active page in the navigation menu. What is the css name of the nav addon/module. ex .sp-megamenu let you make changes to the mega menu layout.
Thanks

Log in to reply.