Page 12 of 227 FirstFirst ... 210111213142262112 ... LastLast
Results 111 to 120 of 2267
  1. #111
    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?

  2. #112
    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.

  3. #113
    Join Date
    Feb 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hello. I was hoping you could help. I have installed your mod and have figured out the minimal additions but am having trouble understanding how to do the following.

    I want to have my main categories have images but keep the sub categories as links. How do I do this?

    Beth-katherine

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

    Default Re: Categories Dressing

    Categories Dressing will only display an image for a category where it finds an image file. If you do not load images for your subcats, you will get the standard text links for them. If you need more help, post a link to your site.


    And congrats on your 100th post :)

  5. #115
    Join Date
    Sep 2006
    Posts
    154
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hi, I have uploaded the files necessary and have individual buttons for each of my categories with the text already placed on that particular image. But with so many options I am now confused on what parts to edit to make my buttons to look like the following:


    Any help will be greatly appreciated. Thank you

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

    Default Re: Categories Dressing

    You have complete images for each of these categories, so you will want to use this section of the code
    PHP Code:
          // categories dressing - display image if exists for category name
          
    if (file_exists(DIR_WS_TEMPLATE_IMAGES 'catimg' $current_path '.gif')) {
            
    $cat_name_display zen_image(DIR_WS_TEMPLATE_IMAGES 'catimg' $current_path '.gif'); 
    which means naming your image files catimg23.gif, catimg24.gif, etc. (whatever your cPaths are). Name your images and load them as the readme instructs, and they will show up in place of the standard text.

    If you want to do hover effects, you would name your images catbg23.gif, catbg24.gif, etc. and add to your stylesheet like this:
    Code:
    	
    /*example for individual category as bg image*/
    a.catBg25 {
        background-image: url(../images/catbg25.gif);
        height: 30px;
        }
    
    a.catBg25:hover {
        background-image: url(../images/catbg25hover.gif);
        }

  7. #117
    Join Date
    Sep 2006
    Posts
    154
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thank you very much, it was much simpler than I thought, now if I can get rid of the blue border I will be in good shape. I do appreciate your help! Saved me hours of manually adding each category to the button!

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

    Default Re: Categories Dressing

    "Blue border"...
    That sounds like the default browser behavior (putting a border around image links), which Zen Cart's standard stylesheet disables. You may have eliminated something in the stylesheet that would have been better left alone. With a link to your site, I could probably identify the problem and fix it.

  9. #119
    Join Date
    Sep 2006
    Posts
    154
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Its still in the works... but appreciate your assistance greatly!
    http://www.frommyheartprimitives.com/shop/

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

    Default Re: Categories Dressing

    A stock stylesheet has

    a img {border: none; }

    right below the body declaration. You don't have "a img" declared anywhere.
    Adding this will fix that problem (tested on your site).

 

 

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

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