Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / individual page modifications

individual page modifications

Views: 404

Results 1 to 6 of 6
11 Jul 2011, 1:40 PM
#1
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

individual page modifications

Ive gone through loads of threads about people wanting to turn off sideboxes on different pages, or backgrounds, or headers, with lots of people pasting lots of code editing etc, but it just hit me that you can simply make a new stylesheet override, and then call it from your product description, or cat description, or anywhere that allows HTML input from the admin panel.

Is there anything wrong with this? I just set up a product with a different background, product image thumbnail removed, and right sideboxes removed, and it works fine, and I can copy/paste this into any product/category I like, and do multiple versions, with multiple CSS override files with different settings.

11 Jul 2011, 1:52 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

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

Re: individual page modifications

dgent:

... you can simply make a new stylesheet override, and then call it from your product description, or cat description, or anywhere that allows HTML input from the admin panel.
I'm not quite sure what you mean by that, but Zen Cart has a built-in way to handle such page-specific stylesheets. Read the CSS_read_me.txt file in the default css folder. It reveals all.

Rob

11 Jul 2011, 1:54 PM
#3
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: individual page modifications

rstevenson:

I'm not quite sure what you mean by that, but Zen Cart has a built-in way to handle such page-specific stylesheets. Read the CSS_read_me.txt file in the default css folder. It reveals all.

Rob

For instance, I made an overide CSS file called 'overide.css' which simply contained

.sideboxcontentright {display: none;}

Then I called that CSS file from my product description - voila, on that individual product, the right side box was disabled.

11 Jul 2011, 1:56 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: individual page modifications

For part of what you are suggesting there is a module called Smart Backgrounds, using CSS similar to what you've described. For the turning off of Sidebox Columns I'm not so sure about doing it through CSS. Normally, one would edit the 'tpl_main_page.php' file for global settings.

An example would help if you are looking for more input.

11 Jul 2011, 1:58 PM
#5
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: individual page modifications

Website Rob:

For part of what you are suggesting there is a module called Smart Backgrounds, using CSS similar to what you've described. For the turning off of Sidebox Columns I'm not so sure about doing it through CSS. Normally, one would edit the 'tpl_main_page.php' file for global settings.

An example would help if you are looking for more input.

Has nobody actually read my first post? :P Ive just said, Ive done exactly what I said, and it all works fine. I just wondered if I was missing anything, or there is anything wrong with it?. Ive been playing with it and can turn anything I want on and off on any product I like, not a global setting for all..actually individual.

11 Jul 2011, 2:02 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: individual page modifications

Well, as described in your original post, you are somewhat trying to reinvent the wheel. Others have already had the same thoughts and coded accordingly. The difference you are stating is that it applies to just one Product Info page; which many have no need or use for. If it works for you then great as there is nothing wrong with you are doing.