Archived topic
fixed page header background
4 replies · Started by Patrick on January 28, 2017
Hi,
on my frontpage I have a full-height page header with background image. I do not like to use with parallax scrolling, i like to have it fixed, so that the imag stys in background and the rest page scrolls over it.
how can I do this?
thanks and regards
Patrick
I've found a solution
.generate-content-header {
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
It would be nice to have such option on options-panel :)
regards
Patrcik
That's perfect :)
That's what the parallax option used to do, but people wanted more of a parallax effect.
True background-image options definitely wouldn't be a bad thing in the page header.
Thanks!
Where do you insert that code?
One of these methods here: https://docs.generatepress.com/article/adding-css/