Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Real easy individual page modifications

    Quote Originally Posted by dgent View Post
    ... 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

  3. #3
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Real easy individual page modifications

    Quote Originally Posted by rstevenson View Post
    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.

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Real easy 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.

  5. #5
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Real easy individual page modifications

    Quote Originally Posted by Website Rob View Post
    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? 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.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Real easy 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.

 

 

Similar Threads

  1. v151 Restricting admin access to an individual EZ page or Defined page
    By Dave Mc in forum General Questions
    Replies: 1
    Last Post: 4 Apr 2014, 10:36 PM
  2. INdividual page colors
    By billdutcher in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Feb 2009, 01:01 AM
  3. Changing Individual Page Titles...
    By Arkwright in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Nov 2007, 04:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg