Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default CSS per category doesn't seem to work.

    I'm trying to make a category specific css file, but it shows up on every page, not just in the targeted category. The category_id = 1, and i have tried all of the following combinations (there are no subcategories)

    c_1.css
    c_1_0.css
    c_1_00.css
    c_01_00.css

    What am I doing wrong?

    Thanks!

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: CSS per category doesn't seem to work.

    Make sure the c_?_?.css matches the "cpath"

    /index.php?main_page=index&cPath=15

    in this case c_15_00.css

  3. #3
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: CSS per category doesn't seem to work.

    Thanks for the response, but that is not the problem. The problem is that the css file ALWAYS is displayed inside and outside the category (and yes, I'm using the correct "cpath." If I put a stylesheet in the css folder, and call it c_15_00.css or whatever, it ALWAYS shows up. There is no filtering happening. I checked the html_header.php file to see if that was the problem but its not.

    Quote Originally Posted by clydejones
    Make sure the c_?_?.css matches the "cpath"

    /index.php?main_page=index&cPath=15

    in this case c_15_00.css

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: CSS per category doesn't seem to work.

    Do you have a URL i can take a peek at?

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: CSS per category doesn't seem to work.

    I took a look and apparently you have something commented out.

    Code:
    http://www.moissaniteco.com/13/includes/templates/Custom/css/c_25_00.css
    
    /* .solCt a{background:url(../images/Sidebox/catbox_roll.gif) no-repeat !important;} */
    
    If it's commented out, its not going to show up.

  6. #6
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: CSS per category doesn't seem to work.

    Yeah, i know. The point is the css shows up on every page. So what ever css I have in that stylesheet WILL show up on every page, not just in the specific category.

 

 

Similar Threads

  1. Deleting products edited by EasyPopulate doesn't seem to work??
    By armyabn1 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 20 Dec 2009, 04:31 AM
  2. EZ pages sidebox exclusion doesn't seem to work
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 29
    Last Post: 4 Aug 2008, 11:12 PM
  3. BetterCategories - a:active doesn't seem to work
    By nipinuk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Jan 2007, 01:51 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