- This topic has 11 replies, 3 voices, and was last updated 6 years, 1 month ago by
Leo.
-
AuthorPosts
-
September 6, 2017 at 12:22 pm #380541
stesch79
Hi team
I have already search through this forum but wasn’t able to find something similar I want to achieve: https://www.momtricks.com/start-here/ The background picture (with the 3 ladies) on a sections page. The picture shall be visible on every second section or even better, selectable where to show and where not.
Would that be possible?
Cheers,
StephanSeptember 6, 2017 at 2:46 pm #380605Leo
StaffCustomer SupportHi there,
You can just add background image to the specific section?
https://docs.generatepress.com/article/sections-overview/#background-imageLet me know if this helps.
September 7, 2017 at 12:22 am #380807stesch79
Hi Leo
Thanks. Set the background for one section is quite clear. But I would like to have the background picture on the whole site for and only showing on defined sections. As you can see on the example site, the background picuture is set for the first section and also shown on one of the last sections.
Regards,
stephanSeptember 7, 2017 at 8:05 am #381011Leo
StaffCustomer SupportHmm I’m not still sure what you mean? The example site actually added that same image twice, one for each of those sections.
September 8, 2017 at 2:37 pm #381970stesch79
Hm… I feel like an idiot. You’re absolutly right! To be honest, I did not really tested it because I thought this cannot look the same as on the example page… but it does when I set the background image on each section I would like to show the image: https://www.sciurus.ch/test/
At least it does for the first two sections with the background. On the third section with background, the image looks repeated…
September 8, 2017 at 4:19 pm #382013Leo
StaffCustomer SupportAhh that’s because there no content after it so the parallax effect won’t work.
Should be able to make it better by using this CSS:
#generate-section-5.generate-sections-container { background-position: center; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know.
September 9, 2017 at 2:05 am #382157stesch79
Thanks. I did active the parallax effect and set your custom CSS. But now I think it’s even worse 🙁
https://www.sciurus.ch/test/September 9, 2017 at 7:50 am #382316Leo
StaffCustomer SupportHmm try going back to your settings from before and just use the CSS.
Let me know.
October 9, 2017 at 1:59 pm #400262Christoph
And what is the solution for “One Background Picture on Sections Page” or is this impossible?
October 9, 2017 at 5:32 pm #400310Leo
StaffCustomer SupportI guess you can can add a background image to the content of that page:
.site-main { background-image: url(http://URLHERE.com); }
Then just make sure the sections background colors have opacity.
October 18, 2017 at 12:24 pm #405812stesch79
It’s basically still not the same as shown in my first post. The “.site-main” does just set background picture, but it’s moving while scrolling. On the example of my first post, the background picture does not move when scrolling.
October 18, 2017 at 4:57 pm #405923Leo
StaffCustomer SupportThe first example you linked is not using “one background image”.
They simply add a background image (https://cdn.momtricks.com/wp-content/uploads/2014/12/best-baby-registry-guide.jpg) twice, once to each section and set it to fixed.
You can achieve the same using Sections add-on.
-
AuthorPosts
- You must be logged in to reply to this topic.