- This topic has 22 replies, 8 voices, and was last updated 6 years, 4 months ago by
Leo.
-
AuthorPosts
-
June 6, 2016 at 10:38 am #199789
Cassie Thomas
Hi Tom,
I’ve uploaded a background image (paper texture) to my body content but I would like the image to go from the header all the way to the footer. Currently the image in the body content makes the side bar widgets, the header and footer fill with color which I’d like to turn transparent so you can see the paper texture instead. When I upload the paper texture using the add-on for each section the photo gets repeated and the boxes look out of place since the paper texture is not a tile and is not meant to be repeated. I’ve used CSS transparency, but when I do that, it removes the entire background and shows the book texture, not the paper texture. Please let me know if there is a way I can make the paper texture fill the entire height and with of the container.
Cassie
June 6, 2016 at 10:48 am #199793Jamal
Set “Size” option to “Cover”
https://generatepress.com/forums/topic/whole-width-site-background/#post-179222
June 6, 2016 at 11:20 am #199798Cassie
Hi Jamal,
I’m not looking for the background image, that is already set. I’m looking for the container image to cover the whole container.
Cassie
June 6, 2016 at 11:44 am #199807Jamal
Hi Cassie,
My bad,i was in a hurry to answer your question and didnt read in detail. I will try as much as i can and hope Tom can help you with the rest.
Currently the image in the body content makes the side bar widgets, the header and footer fill with color which I’d like to turn transparent so you can see the paper texture instead.
Please go to ” Appearance > Customize > Colors > Content Colors ” and remove the “Background” color value.
Have you tried setting a background image under “Content”? I think its this that will appear as a background for your posts and pages content.
June 6, 2016 at 12:19 pm #199828Tom
Lead DeveloperLead DeveloperAh I think I see the issue.
You’ll need to wrap your entire site in a new container using GP Hooks.
In Before Header, add an opening HTML tag:
<div class="full-container">Then in the wp_footer hook, add the closing tag:
</div><!-- .full-container -->Then apply your image to that container (and not the others) using CSS:
.full-container { background-image: url(URL TO YOUR IMAGE); }June 6, 2016 at 2:51 pm #199862Cassie
Looks like that just replaced the background image of the book, not the container image with the beige.
June 6, 2016 at 11:24 pm #199926Tom
Lead DeveloperLead DeveloperYou need to remove the color values from your header and content in the Colors section of the Customizer.
That will allow the background image to show through.
June 7, 2016 at 9:17 am #200014Cassie
Perfect. I had to add
.full-container { position: absolute; left: 20%; }to the CSS above but it’s working perfectly! Thanks again for your help!
June 7, 2016 at 10:01 am #200043Tom
Lead DeveloperLead DeveloperGlad it’s working 🙂
July 25, 2016 at 11:34 pm #212936KENNETH
Hi,
I have a similar issue. but the problem is I’m unable to activate the GP Premium as it clashes with toolset plug.
password:ofrwins
How can I add an image to cover the whole page from side header to footer without repeat width 100% ?
Thank you
July 26, 2016 at 12:24 am #212939Tom
Lead DeveloperLead DeveloperYou could try something like this:
body { background-image: url( 'URL TO YOUR IMAGE' ); background-size: cover; }July 26, 2016 at 12:32 am #212946KENNETH
Hi,
I added. but it is not working.
please inspect..
body {
background-image: url('http://officeforrent.sg/wp-content/uploads/2016/03/img_7659-copy.jpg' );
background-size: cover;
}Thank you
July 26, 2016 at 12:34 am #212947Tom
Lead DeveloperLead DeveloperLooks like you copied from the email maybe?
You need to replace the
'characters with single apostrophes:'July 26, 2016 at 12:42 am #212950KENNETH
Hi Tom,
Please copied to the custom css.
body {
background-image: url(‘http://officeforrent.sg/wp-content/uploads/2016/03/img_7659-copy.jpg’);
background-size: cover;
}Im not sure what is wrong.
July 26, 2016 at 8:51 am #213060Tom
Lead DeveloperLead DeveloperLooks like your CSS is broken.
When there’s a break in the syntax is CSS, anything below it isn’t read.
Paste your custom CSS into here: https://jigsaw.w3.org/css-validator/#validate_by_input
-
AuthorPosts
- The topic ‘Background Image Full Page’ is closed to new replies.