Forums / Templates, Stylesheets, Page Layout / conditions of use - different background from rest of the site.

conditions of use - different background from rest of the site.

Locked

Started by szarin on 26 Aug 2008, 2:28 AM · Views: 4,712

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
26 Aug 2008, 2:28 AM
#1
szarin avatar

szarin

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

conditions of use - different background from rest of the site.

I have created a very long conditions of use that is accessible from the ez-page located in my left sidebox. The "background-iamge: ...." code in the css stylesheet works for everypage but the conditions of use. The legal text is far too long for the background-image found in the "mainwrapper" div.

Is there a way to load a seperate background image that will only be displayed for the "conditions & use". I have created template override "define_conditions.php" and put it into the override area, however unlike css, i am not that farmilar with coding. Im afraid if i start messing around too much i'll get the "white screen of death", aka php coding errors.

Thanks in advanced,
Szarin

Store Link Here

28 Aug 2008, 4:40 AM
#2
misty avatar

misty

Inactive

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

Re: conditions of use - different background from rest of the site.

Guidelines are given in readme file of CSS folder
i.e.

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
**page_name.css // changes to one page *
language_page_name.css // changes to one page, when that language is used
c_????.css // changes to all info pages in a category
language_c
????.css // changes to all info pages in a category, when that language is used
m
??.css // changes to a manufacturer's listing page
language_m_??.css // changes to a manufacturer's listing page, when that language is used
p_??.css // changes to a product's info page
language_p_??.css // changes to a product's info page, when that language is used
print
.css // printer-friendly global usage site-wide changes for printing-only

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

29 Aug 2008, 6:17 PM
#3
szarin avatar

szarin

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: conditions of use - different background from rest of the site.

Thanks for replying so quickly, thank you for explaining the naming system. I tried the change and it worked perfectly the first time, thanks once again.

Szarin

30 Aug 2008, 5:07 AM
#4
misty avatar

misty

Inactive

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

Re: conditions of use - different background from rest of the site.

Pleased to hear your query sorted.
Well done!!
:clap:

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

3 Sep 2008, 8:26 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: conditions of use - different background from rest of the site.

I'm trying to get a different background for the products in each category. What does this mean? What should replace the ?? in the name?

c_??_??.css // changes to all info pages in a category

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

4 Sep 2008, 6:17 AM
#6
misty avatar

misty

Inactive

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

Re: conditions of use - different background from rest of the site.

What should replace the ?? in the name?
Try the number of the category
:smile:

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

4 Sep 2008, 1:27 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: conditions of use - different background from rest of the site.

misty:

Try the number of the category
:smile:

I did. It didn't work, but I'll tinker with it again when I have more time.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

4 Sep 2008, 2:28 PM
#8
misty avatar

misty

Inactive

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

Re: conditions of use - different background from rest of the site.

afo:

I did. It didn't work, but I'll tinker with it again when I have more time.
Have used below... worked fine for my requirements

includes/templates/nameoftemplate/css/c_2.css

where category number 2 required different stylesheet
HTH

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

4 Sep 2008, 2:34 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: conditions of use - different background from rest of the site.

Thanks, Misty. Of course that works! I have no clue what I did wrong yesterday. Maybe I tried it so many ways, I didn't know when to stop. :blink: :laugh:

Now if I can just get it to look the way I want...

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

4 Sep 2008, 2:44 PM
#10
misty avatar

misty

Inactive

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

Re: conditions of use - different background from rest of the site.

Maybe I tried it so many ways, I didn't know when to stop.
Been there..done that..got the tshirt..
Always easy when u know how...but so pleased worked
for you.
:hug:

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

4 Sep 2008, 3:14 PM
#11
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: conditions of use - different background from rest of the site.

Now that I got it working, I'm not sure it's what I want. :laugh: Typical. At least I know how to do it now. :hug:

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

28 Sep 2008, 11:04 AM
#12
sped1530 avatar

sped1530

New Zenner

Join Date:
Nov 2007
Posts:
37
Plugin Contributions:
0

Re: conditions of use - different background from rest of the site.

Thanks for the lead in changing color, but I'm still lost.
As I understand it to change the background of the cat page and page 2,3,4 I need a css sheet for each one.

What would these sheets look like?

Dave

20 Jan 2009, 2:12 AM
#13
malhyp avatar

malhyp

New Zenner

Join Date:
Dec 2008
Posts:
28
Plugin Contributions:
0

Re: conditions of use - different background from rest of the site.

Thanks Misty for pointing me to this post.

I wanted to change the header image for each category so I created a new css sheet (stylesheet_2.css) with only the part that I want to change.

#headerpic {
background: url("../images/headerpic2.jpg");
background-repeat: no-repeat;
width: 850px;
height: 205px;
position: relative;
}

But what happens now is the header image from the (stylesheet_2.css) style sheet comes up in each category.

Did I misunderstand?

29 Jan 2010, 8:01 PM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: conditions of use - different background from rest of the site.

I know this is an ancient question, but for the sake of readers, I'll answer anyway.

stylesheet_2.css is a global stylesheet name that will be loaded on every page, after stylesheet.css, so its rule will override stylesheet.css.

For a single category, you need to follow the CSS_readme directions and name the stylesheet c_2.css. Then it will only be loaded in category 2.