Sticky Header - Question | JoomShaper

Sticky Header

GZ

Ghada Zoubi

Helix Framework 1 year ago

Hello I have a problem in sticky header I write this code :

sp-header {

background: transparent;

position: fixed;}

sp-header.header-sticky {

background-color: #fff;}

.sticky-header-placeholder { background-color: #fff;}

but when I scrol down it not show white background !! http://farms-jo.com/

https://www.loom.com/share/996bd7bebf9346b7b4729901eac49763

0
4 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #163721

Hi Ghada,

you made a small mistake, but easy to correct in seconds.

Your 1st step should be: Template Options > Basic > Header > Sticky Header: On > Save

2nd step: Only then header will get extra class name after scroll down that you can use for different bg color.

#sp-header.header-sticky { }

And you started with Custom CSS not using built-in features. Now you see what was wrong in your concept. ;)

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #163722

p.s.

Presented on the website fruits looks very tasty :))

0
GZ
Ghada Zoubi
Accepted Answer
1 year ago #163725

Manyyyyy thankx Paul

it will be our pleaser to send you some of it if you have any one you know in Jordan I cant send it to you

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #163738

Thanks a lot, I will remember being in your area :)

0