Forums / Templates, Stylesheets, Page Layout / Background image on CentreColumn - unique to front page only?

Background image on CentreColumn - unique to front page only?

Locked

Started by laurenh2201 on 1 Nov 2008, 11:00 AM · Views: 1,735

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Nov 2008, 11:00 AM
#1
laurenh2201 avatar

laurenh2201

New Zenner

Join Date:
Aug 2008
Location:
Edinburgh
Posts:
26
Plugin Contributions:
0

Background image on CentreColumn - unique to front page only?

Is there a way to make a background image unique to only the front page?

This is what I need to get:

I figured the only way to get the coloured bands would be to just use a background image. Problem is, the bands also appear on the sub-category pages.

Anyone know how I could get around this?

Thanks. :)

Edit: I was thinking like, if statements? Can you do that in stylesheets? if(homepage){ }?

1 Nov 2008, 5:42 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Background image on CentreColumn - unique to front page only?

If your are applying this through CSS then have a read of the css readme in the css folder for index page or home page specific stylesheet

Zen-Venom Get Bitten

6 Nov 2008, 8:34 PM
#3
laurenh2201 avatar

laurenh2201

New Zenner

Join Date:
Aug 2008
Location:
Edinburgh
Posts:
26
Plugin Contributions:
0

Re: Background image on CentreColumn - unique to front page only?

kobra:

If your are applying this through CSS then have a read of the css readme in the css folder for index page or home page specific stylesheet

Had a look, and I think I get what I need to do. What would the stylesheet be called? I'd want it to override stylesheet.css, so could it be stylesheet_home.css? And what would I change for the front page use this one and not the default?

Thanks for your help. :)

6 Nov 2008, 9:25 PM
#4
laurenh2201 avatar

laurenh2201

New Zenner

Join Date:
Aug 2008
Location:
Edinburgh
Posts:
26
Plugin Contributions:
0

Re: Background image on CentreColumn - unique to front page only?

Got it (kinda)! Changed the name to index_home.css, and it works fine. Problem is, though the background no longer shows up on say, the contact us page, it still shows up for categories pages. Any thoughts?

Thanks again!