Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,417
    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,039
    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,417
    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,039
    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,039
    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,417
    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. Display Category and Sub Category... old link doesnt work anymore
    By DirkDiggler in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Feb 2007, 09:26 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
  •