[SOLVED] Problems with page background
First of all, I LOVE and appreciate this theme and the gurus behind it. Being a designer, not a programmer, I'm working really hard to learn how to use it as well as I can.
I'm a bit confused about how to style my homepage differently than the interior pages. I want my homepage to have a different background, different content area and styles, etc. Here's the url I'm working on: http://visionofwholeness.org And here's the code I tried entering into the CSS Inserts area: body#page-id-66 div.bodyrow{ background: url(/wp-content/themes/atahualpa/images/bgHomePhoto); } I can't figure out what I'm doing wrong, and would appreciate help. Thanks much! |
try this, you want the background for the body, not the bodyrow
HTML Code:
body#page-id-66 { |
Thanks - I tried that and the following code, but it still doesn't work. I'm putting it in the CSS Inserts. Can't figure it out.
body#page-id-66 div#container { background: url(http://visionofwholeness.org/wp-cont...HomePhoto.pg); } |
You mean .jpg, not .pg.
|
Yes, I caught that, but still not working.
|
You have a problem with the names and or locations of your images. The name of the image must match EXACTLY the name in the folder and CASE IS IMPORTANT - an 'A' does not equal an 'a'
|
Thank you -
I fixed the naming, and also tried the approach of creating a custom page template for my homepage (named "homepage.php) and a bunch of css styles in the CSS Inserts. I still can't get rid of that background graphic. http://www.visionofwholeness.org Among all the other css, the code I inserted for a custom background is: body#page-id-66 { background: url(/wp-content/themes/atahualpa/images/bgHomePhoto.jpg); } :confused: |
In a CSS selector, a class is identified with a '.' while an ID is identified with a '#'. Since the 'page-id-66' is a class (<body class="home page page-id-66 page-template page-template-homepage-php">) the CSS Selector needs to be 'body.page-id-66' not 'body#page-id-66' so you should have
HTML Code:
body.page-id-66 { |
Thank you! On to the next issue - for another thread.
|
All times are GMT -6. The time now is 05:00 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.