Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / css for only main page and for all other pages except main page

css for only main page and for all other pages except main page

Locked

Started by bear1728 on 17 Oct 2009, 10:33 PM · Views: 1,318

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
17 Oct 2009, 10:33 PM
#1
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Post #1 by bear1728

hello,
i have 2 custom css,
the first one, i want it ONLY for main page
the other one, i need it for all the other pages EXCEPT main page,
what do i make it done?

17 Oct 2009, 10:50 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Post #2 by gjh42

Name your homepage stylesheet index_home.css, and your main stylesheet stylesheet.css. Both of them go in /includes/templates/your_template/css/.
index_home.css only needs to include rules that are different from the rest of the site; stylesheet.css will be loaded first on all pages, and index_home will override it where necessary.

If you meant that your rest-of-site custom stylesheet only has some custom rules and not the entire site's rules, then name it stylesheet_custom.css, and it will be loaded after the stock stylesheet.css.