Page 159 of 227 FirstFirst ... 59109149157158159160161169209 ... LastLast
Results 1,581 to 1,590 of 2267
  1. #1581
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    Find and add to your stylesheet_categories_dressing.css
    Code:
    #categories ul a {/*top categories*/
        font-family: 'comic sans ms', sans-serif;
        font-weight: bold;
        font-size: 1.1em;
        color: #ffffff; 
        display: list-item;
    	background-image: url(../buttons/english/catbg-top.gif);
    	    height: 28px;
        list-style: disc inside url(../images/bullet1.gif);/*change to list-style: none; to remove bullet*/
        border: none;
        margin: 0;
        padding: 0;
    	text-decoration: none;
        line-height: 23px;
        }

  2. #1582
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thanks

  3. #1583
    Join Date
    May 2010
    Location
    Portugal
    Posts
    17
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hi,

    First of all Great mod...

    Iīve installed this module just fine and itīs working great... I just canīt figure out how to make the specials, new products, featured products and all products to work as the categories buttons with rollover background...

    Can anyone help?

    Hereīs my site http://www.pedradatattoosupplies.com

    Thx in advance
    Last edited by nummell; 8 Jan 2011 at 08:39 PM. Reason: double signature

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

    Default Re: Categories Dressing

    I am away from my main computer now so don't have the instructions at hand, but it should be in the readme, and very similar to the category background setup. I will check on it when I get home tomorrow if you still need help.

  5. #1585
    Join Date
    May 2010
    Location
    Portugal
    Posts
    17
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Thx for your quick reply.
    Iīve read the readme again and didnīt find anything.

    I tried this:

    #categories li a.catBgspecials {
    background-image: url(../buttons/portugues/catbg_specials.png);
    background-position: center;
    height: 30px;
    }

    #categories li a.catBgspecials:hover {
    background-image: url(../buttons/portugues/catbg_specialshover.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 30px;
    }



    Still doesnīt work
    I believe it has something to do with cpath...

    Can you help?

    Thx in advance

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

    Default Re: Categories Dressing

    On reviewing the files, there is no facility in v2.7.3 for replacing link names with images. This can easily be added by replacing one line for each link (specials, new, featured and all products).
    For example, find this line
    PHP Code:
            $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_SPECIALS) . '">' CATEGORIES_BOX_HEADING_SPECIALS '</a>' '</li>' "\n"
    and replace
    CATEGORIES_BOX_HEADING_SPECIALS
    with
    cat_name_display(CATEGORIES_BOX_HEADING_SPECIALS, 'specials')
    to get
    PHP Code:
            $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_SPECIALS) . '">' cat_name_display(CATEGORIES_BOX_HEADING_SPECIALS'specials') . '</a>' '</li>' "\n"
    Make similar replacements for new, featured and all products.

    Name images like catBgspecials.gif, and style like

    #categories li a.catBgspecials {
    background-image: url(../buttons/portugues/catbgspecials.gif);
    background-position: center;
    height: 30px;
    }

    If you want to use png images, you will need to change code in the functions for v2.7.3.

    This feature is not in the posted beta for v2.8, but I will add it to the final release.
    Last edited by gjh42; 10 Jan 2011 at 04:07 PM.

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

    Default Re: Categories Dressing

    Sorry, my computer crashed before I could correct this typo. The image names should all be lowercase:

    Name images like catbgspecials.gif.

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

    Default Re: Categories Dressing

    I forgot to mention that the above code replacement is to be done in /includes/templates/your_template/sideboxes/tpl_categories.php.

  9. #1589
    Join Date
    May 2010
    Location
    Portugal
    Posts
    17
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Hi again,

    Something must be wrong...

    I made the changes and triple checked everithing... even tried with png and gif...

    Some code must be missing because itīs showing "array" in place of the specials link

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

    Default Re: Categories Dressing

    Thanks for the feedback. I had forgotten that the function returns an array. It will take a bit more code. Use this:
    PHP Code:
            $link_name_display cat_name_display(CATEGORIES_BOX_HEADING_SPECIALS,'specials');
            
    $content .= '  <li><a class="category-links' $link_name_display[0] . '" href="' zen_href_link(FILENAME_SPECIALS) . '">' $link_name_display[1] . '</a>' '</li>' "\n"
    adjusted for each link.

    This will replace foreground images, but not background/hover images. That would take a bunch more coding to arrange, much of it new code since $cPath is not involved at all. I will look at this later for inclusion in v2.8.

 

 

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