Tagged: cornerstone
-
AuthorPosts
-
March 22, 2017 at 5:54 am #1416064
Hello,
I have a content band on this page : https://cueilleurs-sauvages.ch/saute-de-tofu-ail-des-ours/
I’d like to have a background image with parallax. I’d like the image size to fit the container block horizontally.
When parallax is set to “none”, the image size fits the container. But when parallax is “true”, the image size is bigger than the container.
Can you help me please? Thanks!
Michaƫl
March 22, 2017 at 4:25 pm #1416820Hi there,
Thanks for writing around! I checked your page and couldn’t find a parallax image, can you please activate the parallax image so we can take a closer look?
Thanks!
March 23, 2017 at 3:06 am #1417330OK now it’s activated!
Thanks
March 23, 2017 at 4:30 am #1417389Hello There,
When you activate parallax, the background image will adjust to accommodate the parallax effect. Nothing will happen when the image would just fit the container. No parallax effect would happen then. This is how parallax image works. I would highly recommend that you upload an image larger than 1200 pixels as a background image.
Please let us know how it goes.
March 24, 2017 at 1:15 pm #1419338Ok I understand now! Is it possible to apply a css style to the image. For ex to darken it without modifying the original?
thanks!
March 24, 2017 at 11:08 pm #1419843Hello There,
Yes you can always have something on top of the image that will darken the original image. Please add the following css code in the customizer, Appearance > Customize > Custom > Edit Global CSS
.x-content-band.bg-image.parallax, .x-content-band.bg-pattern.parallax { position: relative; } .x-content-band.bg-image.parallax:before, .x-content-band.bg-pattern.parallax:before { content: ""; display: block; background-color: rgba(0,0,0,0.65); width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
We would loved to know if this has work for you. Thank you.
April 2, 2017 at 12:58 am #1427209Great thanks!
April 2, 2017 at 1:08 am #1427212You’re welcome!
-
AuthorPosts