Jump to content

Background Image on Homepage Only


Recommended Posts

Good morning

 

Your site comes up as 404, but I think all you need to do is add:

 

body#index{ url to your image } in global.css

 

Hope this may help

 

Paul

 

Hi Paul - thanks for replying. I had it in Maintenance mode...and is the code you show formatted exactly like you have it shown? Thanks again

Link to comment
Share on other sites

Good morning

 

Your site comes up as 404, but I think all you need to do is add:

 

body#index{ url to your image } in global.css

 

Hope this may help

 

Paul

 

You've put me on the right track! I have to figure this out a little further though because I'm using an image already to create the full-width menu bar. So when I added the code you suggested, it overrides that image. I'm thinking I may have to create two separate background images: one with the full-width menu AND index image, and one as it it is now with just the full-width menu image...

 

Thoughts?

Link to comment
Share on other sites

in header.tpl right after <body> add another div

 

<div id="myDiv">

 

in footer.tpl right before </body> close myDiv </div>

 

 

then in styles use 

 

#index #myDiv {background:here url; display:block; width:100%; clear:both; overflow:hidden;}

Link to comment
Share on other sites

in header.tpl right after <body> add another div

 

<div id="myDiv">

 

in footer.tpl right before </body> close myDiv </div>

 

 

then in styles use 

 

#index #myDiv {background:here url; display:block; width:100%; clear:both; overflow:hidden;}

Thanks for the reply but no luck. I followed instructions exactly. See attached. Thanks again

 

post-710921-0-52145800-1388185107_thumb.jpgpost-710921-0-31826300-1388185108_thumb.jpgpost-710921-0-09127800-1388185109_thumb.jpg

Link to comment
Share on other sites

no luck? take a look what i see:

3ehvQRZ.png

It didn't work as you provided instructions for. See I have an image to create the 100% menu bar. Your suggestion didn't work because the image on the homepage overrides the menu image. So it was not working correctly. What I had to do was add an additional image that incorporates the full width menu image and the homepage image.

 

So in actuality, no - the original suggestion didn't work...but I appreciate your replies.

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...