Adding Image as home page background behind text only
-
Hi All
Trying to get an image, only behind my home page, where it is currently plain white, is it possible to set up a CSS for this or code or any help would be great. I have a faded image that I want as the background only on this page. Any help would be great, thanks.
My Page to view if you want to see it
p.s…I only want it behind where the text is, not the whole page, just the content. Thanks 🙂
Mod
Try
.entry-content {
background-image: url(path to image);
}Thanks, do i put that in my custom css with the path to image as the image?
I tried adding this to the custom css but it has not shown anything, this is what I put in:
.entry-content {
background-image: url(http://www.truenorthconsulting.eu/?attachment_id=131);
}But it doe snot show any different on This page
The link you used links to a page not an image.
Use this link:
http://www.truenorthconsulting.eu/wp-content/uploads/2013/03/Boat-4.jpg
Thanks, blonde moment! That works, but it is only showing part of the image, any idea how to size it? and be behind all blue text area of that page?
First you should re-size your image (it’s to big), then you can use the background-size property
Thanks, am getting there.
My only other problem is it is showing on all pages, not just the home page, any ideas how to make it show on just one page?
Thanks 🙂
Put your text inside a div tag and give it an unique id then replace the .entry-content with the id of the div
<div id="name_of_the_id"> your text.</div>
then on your css file add
#name_of_the_id{
...
}
Viewing 10 posts - 1 through 10 (of 20 total)
- 1
- 2
- You must be logged in to reply to this topic.