Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can I have a separate background for product listings?

Can I have a separate background for product listings?

Locked

Views: 1,265

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
29 Jan 2010, 7:15 PM
#1
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Can I have a separate background for product listings?

I have a background for the front main page content but can I have a different background that shows up with the products listings?

29 Jan 2010, 7:23 PM
#3
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: Can I have a separate background for product listings?

Thanks Misty but I am still kinda lost.

29 Jan 2010, 7:42 PM
#4
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: Can I have a separate background for product listings?

Here are some images of the way I want it to look back1.jpg is the way I want the background to look when its on the front page only and then back2.jpg is the way that I want it to look on every other product page and check out pages.

29 Jan 2010, 7:45 PM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Can I have a separate background for product listings?

Achieved via different stylesheets for each page/s concerned...
as outlined in thread quoted in my previous post above.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

29 Jan 2010, 8:03 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Can I have a separate background for product listings?

You would want per-page stylesheets for this, since all the categories are included in your desired scope.
Something like

index.css
checkout_shipping.css
checkout_success.css
etc.

And if you don't want the homepage to have the listing styling, you would need to include in index.css

#indexHomeBody #yourElement {whatever-property: standard-value;}

29 Jan 2010, 8:19 PM
#7
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: Can I have a separate background for product listings?

Can I have a stylesheet for the index page and another for the rest of the site that way I only have 2 style sheets?

29 Jan 2010, 8:24 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Can I have a separate background for product listings?

If the only distinction you need is between homepage and the rest, you can use a stylesheet named index_home.css. I forgot about that one when writing the previous post.

29 Jan 2010, 8:50 PM
#9
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: Can I have a separate background for product listings?

Once again thank you for your input but I am lost. So I make a new stylesheet for home but what do i put on it and where do I save it. Also how does the index page call this stylesheet. Trust me I need a lot of help thanks.

29 Jan 2010, 10:17 PM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Can I have a separate background for product listings?

touchclothing:

Once again thank you for your input but I am lost. So I make a new stylesheet for home but what do i put on it and where do I save it. Also how does the index page call this stylesheet. Trust me I need a lot of help thanks.
Don't have link to your zencart site, so am presuming you have template, which has stylesheet...
so you create copy of that BUT alter where you require different background image,
name that extra stylesheet index_home.css and upload to same folder
as existing stylesheet for your current template..

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

29 Jan 2010, 11:05 PM
#11
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: Can I have a separate background for product listings?

here is a link to my site http://www.madisonmedicalsupplies.com/

30 Jan 2010, 3:24 AM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: Can I have a separate background for product listings?

Actually, index_home.css will be loaded after stylesheet.css, not instead of it, so you should only put rules in it that are different from the main stylesheet.

The "page" doesn't call the stylesheet; the core system that asembles each page has a routine that checks all the .css files in the /css/ folder against a list of rules and decides which ones to load.