- This topic has 14 replies, 3 voices, and was last updated 9 years, 5 months ago by Adrian Cojocariu.
-
AuthorPosts
-
June 21, 2015 at 1:23 am #115839edefia
I write to you because I need some help, before you would excuse me for my level of english because I’m french. So I already have got a blog here and I would like to reproduce with generate press the background like a page of paper in the content posts but I don’t know how to do for the top and the bottom. For information I bought generate press premium and I use the plugin “SiteOrigin Css” to modify the css.
Thank you to have read me.June 21, 2015 at 4:27 am #115873Adrian CojocariuDepends on what you want to do.
You can just use a better image, like this one, and set it to repeat.
http://www.teacherfiles.com/clipart/xbackgrounds/lined_paper_light.jpg
Or you can delete the background color from the content area completely, in this case it will show “false”, and the white behind it will disappear, showing only the paper background.
June 21, 2015 at 10:20 am #115899TomLead DeveloperLead Developer^^ What he said ๐
Basically, set your body background to your image in “Customize > Background Images”, and then delete the colors from your content and sidebar backgrounds in “Customize > Colors”.
That should be it!
June 21, 2015 at 1:27 pm #115904edefiaThank you For your answers, but this not exactly that I want to do.
The background of the post in the example link has got three parts, a header where you can find the title of the post, the main part (which is repeated) where you can find the content and the footer.
Can I do the same thing with generate press ?June 21, 2015 at 10:38 pm #115939Adrian CojocariuYou can’t , wordpress doesn’t have a single post header and footer. Why would you want that ? The post already has title content and some “footer” info. Why need to separate them ?
June 21, 2015 at 10:39 pm #115940Adrian CojocariuIf you want to use the same background as the one on that site but it’s split in 3, just use paint or pixlr.com to mix the images into a single piece.
June 21, 2015 at 11:00 pm #115946TomLead DeveloperLead DeveloperHmm, are you wanting to do that to each blog post? Or the entire content container?
Definitely a tough one..
June 22, 2015 at 10:38 am #116042edefiaTom, I want to do that to each blog post. The idea is that each post is written on a torn sheet like on my actually blog. And I think that I can’t have just one picture on the background because the height of the post adapts to the height of the content.
June 22, 2015 at 5:27 pm #116113Adrian CojocariuAh I see how, yeah this is a tricky one Tom.
It is because she wants both ends with the paper torn apart, but if she uses a single images it’s no good because you can’t know how long each post is, and the image will repeat badly.
The only idea I have is to use multiple backgrounds, which are 3 in this case.
The first one is the top, the second one is the bottom, and the third one is repeating.
Color the background images to match the background color of the body of the website.
Then add this to your CSS.
.inside-article { background-image: url(http://ekladata.com/IJgiHjk9Ds0gH9lR0SpnMqsE3ZI.png), url(http://ekladata.com/63E9qxa7Bgv7gnGuOJeWFEpdikk.png),url(http://ekladata.com/K4fFpv-rWO-hpKQT8dyLr1MshoE.png); background-position: center top, center bottom, center; background-repeat: no-repeat, no-repeat, repeat-y; }
You have the top and the bottom backgrounds, and the one repeating under them.
Hope this gets you to it without having to do the header/footer thing.
June 22, 2015 at 11:35 pm #116135TomLead DeveloperLead DeveloperGreat idea using multiple backgrounds like that – awesome! ๐
June 23, 2015 at 12:21 am #116137Adrian Cojocariu^_^ been through many the past 2 weeks, hope edefia gets it to work for her.
June 23, 2015 at 9:21 am #116222edefiaJune 23, 2015 at 10:59 am #116231Adrian CojocariuHmmm could you post a link to the site on which you have generatepress so we can see the code ?
Delete the background image from the Customizer, also use backspace to delete the color hex inside the article area so that it shows false.
Then… try using the !important to overwrite any other CSS.
.inside-article { background-image: url(http://ekladata.com/IJgiHjk9Ds0gH9lR0SpnMqsE3ZI.png), url(http://ekladata.com/63E9qxa7Bgv7gnGuOJeWFEpdikk.png), url(http://ekladata.com/K4fFpv-rWO-hpKQT8dyLr1MshoE.png) !important; background-position: center top, center bottom, center !important; background-repeat: no-repeat, no-repeat, repeat-y !important; }
But mostly a link with the site will help….
Also multiple background seem not to work on some browsers, you should be using the latest version of Chrome/Mozilla on at least a Vista/Win7 OS.
June 27, 2015 at 8:55 am #116920edefiaThank you it was the good solution !
June 28, 2015 at 1:27 am #117043Adrian CojocariuI’m glad I could help ! ^_^ Good luck
-
AuthorPosts
- You must be logged in to reply to this topic.