Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Change Background (or anything else) on Main Page ONLY

Change Background (or anything else) on Main Page ONLY

Views: 595

Results 1 to 7 of 7
2 Jan 2013, 9:32 PM
#1
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Change Background (or anything else) on Main Page ONLY

OK. so I have read the read.me in the css folder, and I have been to the thread:
http://www.zen-cart.com/showthread.php?106220-conditions-of-use-different-background-from-rest-of-the-site

But I am still not completely clear about what the .css file for the main page ONLY should be named.

is it index.css ?

2 Jan 2013, 9:56 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Change Background (or anything else) on Main Page ONLY

masterrusty:

OK. so I have read the read.me in the css folder, and I have been to the thread:
http://www.zen-cart.com/showthread.php?106220-conditions-of-use-different-background-from-rest-of-the-site

But I am still not completely clear about what the .css file for the main page ONLY should be named.

is it index.css ?

index_home.css

2 Jan 2013, 9:57 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Change Background (or anything else) on Main Page ONLY

SEE:

includes/templates/template_default/css/CSS_read_me.txt

index_home.css   // specifically affects the home page only
2 Jan 2013, 10:11 PM
#4
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: Change Background (or anything else) on Main Page ONLY

schoolboy:

SEE:

includes/templates/template_default/css/CSS_read_me.txt

index_home.css // specifically affects the home page only


Thanks.  That specific line is not in my readme in Ver 1.5.1 (or 1.3.8a).
2 Jan 2013, 10:26 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change Background (or anything else) on Main Page ONLY

The top of my v1.5.1 test site's CSS_read_me.txt:

The CSS files are sent to the browser in this order: (and alphabetically within each case of more than one match):

             style*.css   // are always loaded and at least ONE should contain site-wide properties.
language_stylesheet.css   // changes to ALL pages, when that language is used
         index_home.css   // specifically affects the home page only
3 Jan 2013, 5:14 PM
#6
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: Change Background (or anything else) on Main Page ONLY

Oops. I was looking at includes\templates\classic\css

I thought they would (should) be the same.

:blush:

3 Jan 2013, 8:46 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change Background (or anything else) on Main Page ONLY

They should. Actually, I believe I read that CSS_read_me.txt was moved (from /classic/ to /template_default/) recently. Is your site upgraded? If so, there might be an old version of the file in /classic/ that was not replaced or deleted by the moved version of the file.