Parallax not working on Header Images
Can you please tell me how to get parallax working on header images.
- I have created custom layout
- Header = Stack Centre
- Position = Parallax
- Image size is 2000x1141px
- (Parallax works with other image backgrounds in pages)
Many thanks
Comments
Notice!
Please attach a link to this forum discussion.
Thanks
Can you disable this or send the login credentials for the second authorization?
Thanks
I set the image of the header in Theme Options > Header & Subheader > Header and now it works.
Thanks
That images you inserted in your custom layouts are the background image of the website(http://prntscr.com/mkim44), not header images and it's displaying only because the "Header" is set to transparent.
This is the fault why the parallax is not working because this effect is attached to #Header, not HTML tag.
The effect with using the Revolution Slider could be the same or better because it's easy to use and customize.
Thanks
1) I set the image of the header in Theme Options > Header & Subheader > Header
http://prntscr.com/mkkftg
2) Disable(tick off) the transparent option in Theme Options > Global > General
http://prntscr.com/mkkg3a
And it will be working, but it will display the single image which is set in step nr 1
It's not a bug - An image in header tag(#Header_wrapper) can be parallax but not the image in HTML tag.
But again, when you insert the image in Custom Layout field (http://www.matmackenzie.co.uk/wp-content/uploads/2019/02/Capture.jpg), then it will be displayed in HTML tag (http://prntscr.com/mkim44), and this is normal behavior, because as you can see, while editing the layout section "Header" is on the bottom and you can't upload the image there.
http://prntscr.com/mkkndb
This background field in the layout is a background of the website (I mean, below the Content)
http://prntscr.com/mkkodz
But, if you'll upload the image correctly, in Theme Options > Header & Subheader > Header, then it will be displayed in '#Header_wrapper', not HTML and the parallax effect will appear:
http://prntscr.com/mkkq7v
Notice that #Header_wrapper has the class 'bg-parallax' but HTML does not.
Thanks