Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default CSS Stylesheet for One Product Only?

    I know it's possible to use individual stylesheets for individual pages, but is it possible to use a stylesheet that would control an individual product page? Not all products, just one particular product.

    The reason is complicated, but I do have a good reaon. Can anyone shed some light on it?

    I already use a seperate stylesheet for all prduct info pages called product_info.css. This works for all product pages, but how do I use a stylesheet to control just one product when the url is product_info&cPath=1_19&products_id=1111

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS Stylesheet for One Product Only?

    It's ok, I've figured this out, just not thinking straight this morning! All I had to do was add the CSS to the actual html file I uploaded for the product.

    Voila.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS Stylesheet for One Product Only?

    Or you could make a file called p_1111.css and put your styling for that product in it...:)

  4. #4
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS Stylesheet for One Product Only?

    Thanks for the tip Glen, I'd tried all sorts of combinations for the .css filename but would never have guessed where the 'p' comes from. Thanks.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: CSS Stylesheet for One Product Only?

    Glenn's tip is documented in several places in the files that came with your Zen Cart install:
    /docs/readme_css_system.html
    /includes/templates/template_default/css/CSS_read_me.txt
    /includes/templates/classic/css/CSS_read_me.txt
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. How to load css or js files for only one page?
    By delia in forum Contribution-Writing Guidelines
    Replies: 11
    Last Post: 19 Sep 2015, 03:34 PM
  2. How do I create a css stylesheet for only my shopping cart page.
    By bigstore in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Feb 2012, 04:26 PM
  3. Changing CSS rules for one page only.
    By CheekyCockney in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Mar 2011, 12:53 AM
  4. Replies: 0
    Last Post: 1 Jul 2009, 05:02 PM
  5. More control on layouts only by CSS Stylesheet?
    By steveroot in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Aug 2007, 12:24 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR