Results 1 to 10 of 2267

Hybrid View

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

    Default Re: Categories Dressing

    Before looking at your site... You commented out the stylesheet declaration that calls for the sample background image? I bet the image files are still in /your_template/images/.

    The code checks for the existence of files named according to the formula, and if it finds them, it disables the text for that category so the background swap can operate. You need to delete, move or rename the image files; then there will be no problem.

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Categories Dressing

    yea yea, you just don't want a new roommate. haha

    Now here's a silly question. Why do you have the code checking for an image instead of letting the css file handle it? Or am I more confused that before?

    Renaming image files now.

    Oh yea, I'm getting rave reviews on the new look thanks to Categories dressing.

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

    Default Re: Categories Dressing

    There are different CSS calls based on what is wanted to happen - foreground image, background image with hover swap, etc... The categories need different class tags to use each variant, so it has to check which variant to use, and all is controlled in one place (by loading the proper files).
    Also, this avoids the situation of specifying that some text should be replaced by an image and if the image is missing there is nothing displayed. Cat Dressing, no image, and the standard text is displayed.

    I have been learning about some even neater text replacement methods, and one day I may play with them and see if I can get the function even more streamlined.

  4. #4
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I'm having trouble with the bullets on the subcategories. I've added the code

    a.category-subs-text, a.category-products-text {
    display: list-item;
    list-style: circle inside url(../images/bullet3.gif);
    }

    to the CSS but the bullets are not displaying in FF (mac). FireBug is installed and the 'display: list-item;' shows up as strike-through.

    What am I missing?

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

    Default Re: Categories Dressing

    That declaration needs to be

    #categories a.category-subs-text, #categories a.category-products-text {

    so that something else doesn't override it.

    The earliest version of Cat Dressing had the #categories for all declarations, but I later found it wasn't needed... at least in most places. Apparently it was still needed here.

  6. #6
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thanks, that made the difference. Is it possible to have the subcategories act the same way as the topcategories (down-arrow) when selected using a seperate 'category-subs-parent' class?

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

    Default Re: Categories Dressing

    Any (sub)category situation that is distinguished by a different class name can be addressed in the stylesheet with its own marker, background, hover, etc.

    If it doesn't have a distinguishing class, it should be possible to customize the code somewhere in tpl_categories.php to make a class. The specifics would depend on exactly what was wanted.

  8. #8
    Join Date
    Jan 2008
    Posts
    89
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hello,

    This MOD is excellent, but all i want is to add an image of a line between each item listed in the category menu.

    i am not sure what should i remove or add in the dressing files to achieve this?

    any thoughts?

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

    Default Re: Categories Dressing

    As described in the readme, find this section in tpl_categories.php
    PHP Code:
          // categories dressing - add divider above specified cats
          
    if(in_array($current_pathexplode(",",'3,22,21_56'))) { //replace numbers with your cat ids separated by commas
            
    $content .= '<hr class="catBoxDivider" />' "\n";
          } 
    and put the ids of all of your top categories in the list.

 

 

Similar Threads

  1. categories dressing
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2010, 09:29 PM
  2. Categories Dressing
    By wotnow in forum Addon Sideboxes
    Replies: 10
    Last Post: 7 Apr 2010, 03:06 AM
  3. Categories Dressing issue
    By Maynards in forum Addon Sideboxes
    Replies: 0
    Last Post: 13 Mar 2010, 10:51 PM
  4. Categories Dressing
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 11:05 PM
  5. Categories Dressing
    By PGlad in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2007, 07:05 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