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

Change menu colour when it's sticky Konstra template

Asked by Johan Kooistra 1 year ago Last activity 1 year ago

Hello all,

I would like to change the colour of the Konstra template when it's sticky, but it changes the template body style text as well:

I can chage the colour when you see the menu (initially when you load the page). Ben when you sroll down on the website, the menu color changes to dark grey/black.

If I change in the presets: Body text color, this menu bar is also changed, but also (as the option states) the body text colour is changed.

I would like to change the sticky header color only if that is possible, but I'm not that good with css.

Thanks a lot in advance

Accepted answer

Marked as the solution
Mehtaz Afsana Borsha Staff

Hi

Use this CSS in your custom.css file

#sp-header.header-sticky{
  background-color: #2BA84A !important;
}

9 more replies

Mehtaz Afsana Borsha Staff

Use this CSS in your custom.css file

#sp-header.header-sticky #sppb-addon-1553066286252 #btn-1553066286252.sppb-btn-link{
  color: black !important;
}
Johan Kooistra Asked this

There was not an custom.css in the template, so I created one and put it in the css directory and included that line.

Unfortunately it didn't work :(

Mehtaz Afsana Borsha Staff

Hi

Please keep a full site backup and give me your super admin access.

Johan Kooistra Asked this

See hidden content.

Johan Kooistra Asked this

Oh then I'm sorry and didn't explain it well: It's the color of the menu bar itself which is the problem when going sticky.

I can change it, but the website body trext changes to that color as well.

Mehtaz Afsana Borsha Staff

Hi

Could you please send me a screenshot of the portion you want to change?

Johan Kooistra Asked this

I can change the color of Nr 1, but this also changes the Nr 2 and 3 to the same color.

This van be done in the presets, with "Body Text Color" but I only want to change the color of Nr 1 (the menu bar color when you have it sticky.

Thanks in advance!

Mehtaz Afsana Borsha Staff

Body texts color are different from header menu color. Header menu color does not effect the body text color.

Johan Kooistra Asked this

I can adjust the header, but not when it's sticky, that is the same color as the body tekst color.

I hope I can clarify this:

When the page first loads, you have the menu bar color: Green (this is the color I want it to be). This is also the color I want it to be in it's sticky form (when you scroll down on the page).

You can only change that color by changing the BODY TEXT option in the presets. This also (logically) change the body text.

However I just want to change the color of the sticky menu header bar and not the body text. I probably need an extra css line for that, since it's not in the presets menu.

Thanks for your patience.

Johan Kooistra Asked this

That worked like a charm.

Thank you very much!

Mehtaz Afsana Borsha Staff

Glad to know that. You are always welcome.

Log in to reply.