Forums / Templates, Stylesheets, Page Layout / Adding Shadow on Left/Right of Classic Template

Adding Shadow on Left/Right of Classic Template

Locked

Started by eyal8r on 28 Jan 2010, 4:48 AM · Views: 2,207

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
28 Jan 2010, 4:48 AM
#1
eyal8r avatar

eyal8r

Zen Follower

Join Date:
Jan 2010
Posts:
142
Plugin Contributions:
0

Adding Shadow on Left/Right of Classic Template

Well, I thought this would be easy- but apparently I'm not getting it. LOL. I want to add a little shadow to each side of the classic template.

I added this to my CSS-

#wrapperleft {
width: 100%;
max-width: 1000px;
margin:auto;
background-image: url(../images/shadow_left.png);
background-position: top left;
background-repeat: repeat-y
}

#wrapperright {
width: 100%;
max-width: 1000px;
margin:auto;
background-image: url(../images/shadow_right.png);
background-position: top right;
background-repeat: repeat-y
}

THEN- I added this to the tpl_main_page.php :

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>> <?php if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <div id="mainWrapper"> <div id="wrapperleft"> <div id="wrapperright">

And then at the bottom of that same file- added in this:

</div> </div> <!--eof- banner #6 display --> </body>

But it's not working. Yes, I uploaded the png files to the images directory... ;)

Any suggestions?

28 Jan 2010, 4:55 AM
#2
afo avatar

afo

Totally Zenned

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

Re: Adding Shadow on Left/Right of Classic Template

I suggest you create your own custom template instead of making your changes in the files that came with Zen Cart or all your changes will be lost with the next update/upgrade.

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 Jan 2010, 5:06 AM
#3
eyal8r avatar

eyal8r

Zen Follower

Join Date:
Jan 2010
Posts:
142
Plugin Contributions:
0

Re: Adding Shadow on Left/Right of Classic Template

I actually am using my own template for this. I copied the Classic one over to my CUSTOM. I added the tpl_main_page file to my includes/templates/CUSTOM/common folder... and the CSS into the includes/templates/CUSTOM/css folder (where CUSTOM is my template name).

Right???

28 Jan 2010, 5:50 AM
#4
eyal8r avatar

eyal8r

Zen Follower

Join Date:
Jan 2010
Posts:
142
Plugin Contributions:
0

Re: Adding Shadow on Left/Right of Classic Template

Actually- I got it now. I changed it to this and all is good!

<div id="wrapperleft"> <div id="wrapperright"> <div id="mainWrapper">

:clap:

28 Jan 2010, 1:47 PM
#5
afo avatar

afo

Totally Zenned

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

Re: Adding Shadow on Left/Right of Classic Template

eyal8r:

I actually am using my own template for this. I copied the Classic one over to my CUSTOM. I added the tpl_main_page file to my includes/templates/CUSTOM/common folder... and the CSS into the includes/templates/CUSTOM/css folder (where CUSTOM is my template name).

Right???

Yes, that's right. :smile: I just get nervous when someone says they're using the classic template.

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 Jan 2010, 1:48 PM
#6
afo avatar

afo

Totally Zenned

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

Re: Adding Shadow on Left/Right of Classic Template

eyal8r:

Actually- I got it now. I changed it to this and all is good!

<div id="wrapperleft"> <div id="wrapperright"> <div id="mainWrapper">

:clap:

Cool! :cool: I'm sure that'll help someone else trying to do the same thing.

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 Jan 2010, 1:53 PM
#7
eyal8r avatar

eyal8r

Zen Follower

Join Date:
Jan 2010
Posts:
142
Plugin Contributions:
0

Re: Adding Shadow on Left/Right of Classic Template

Hopefully so! I'm glad it will serve someone else... :bigups:

28 Jan 2010, 2:03 PM
#8
epsonprintersrock avatar

epsonprintersrock

New Zenner

Join Date:
Jan 2010
Posts:
49
Plugin Contributions:
0

Re: Adding Shadow on Left/Right of Classic Template

What do you mean by 'shadow' ??

Do you mean having your website as a fixed width and keeping it centred on the webpage, while having two borders either side of it?

Sorry for such a simple question. :lamo:

28 Jan 2010, 2:08 PM
#9
eyal8r avatar

eyal8r

Zen Follower

Join Date:
Jan 2010
Posts:
142
Plugin Contributions:
0

Re: Adding Shadow on Left/Right of Classic Template

That's it exactly. The shadow is a drop shadow image...

28 Jan 2010, 3:22 PM
#10
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Adding Shadow on Left/Right of Classic Template

Could you show us the result?

Rob

Breakfast: the most important donut of the day.