Page 37 of 227 FirstFirst ... 2735363738394787137 ... LastLast
Results 361 to 370 of 2267
  1. #361
    Join Date
    Mar 2008
    Posts
    148
    Plugin Contributions
    0

    Default Re: Categories Dressing

    How do I remove the -> from the end of top level categories? Thanks.

  2. #362
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I confess I'm clueless.

    I've been trying to make my headings linked and everything I've tried (from the "Relentless' posts earlier in this thread) so far kills all of the sideboxes. They either completely disappear or they all start overlapping on top of each other.

    Here is a link to the site: www.nybgear.com

    I want the headings to link to a category by the same name. As you can see, right now the category is showing directly under the headings. If I can get the headings linkable, I will turn those specific categories off.

    I appreciate your help!
    I'll finish that project tomorrow, I've made enough mistakes today!

  3. #363
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Re: Categories Dressing

    Hi Glenn,

    I hope you don't get annoyed by me, but I have yet another question. I have images for eacht category in my menu. They are images of words so they are not good for english or german.

    Now I've made new images and placed them, the way I read in this thread, in buttons and than language.

    So the path for example for category 1 would be
    buttons/dutch/catimg1.gif
    buttons/german/catimg1.gif
    buttons/english/catimg1.gif

    Now I read the part on language-specific stylsheets so I made a stylesheet for every language. What I just don't understand is what to put in it. I read something on catbackground... but I don't use those images, I just use the catimg.gif thing. So what do I add to all of the stylesheets to make it work?

    Sorry if this is a stupid question. Thank you again for all your help.

    Juliet
    Working on http://www.skull-shop.net once again.

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

    Default Re: Categories Dressing

    Language-specific stylesheets and the /buttons/language/ subfolders are two different ways to get similar results. They don't really work together, although it probably won't hurt to use them both for their own purposes.
    The stylesheets can work for background images, but not for foreground images, and background images cannot switch between subfolders within the CSS.

    You should actually be able to make language subfolders in your template /images/ folder, and save the category images there.
    Change this section
    PHP Code:
          // categories dressing - display image if exists for category name - with title tag
          
    if (file_exists(DIR_WS_TEMPLATE_IMAGES 'catimg' $current_path '.gif')) {
            
    $cat_name_display zen_image(DIR_WS_TEMPLATE_IMAGES 'catimg' $current_path '.gif''''''''title="' $box_categories_array[$i]['name'] . '"'); 
    to look like this
    PHP Code:
          // categories dressing - display image if exists for category name in current language - with title tag
          
    if (file_exists(DIR_WS_TEMPLATE_IMAGES $_SESSION['language'] . '/catimg' $current_path '.gif')) {
            
    $cat_name_display zen_image(DIR_WS_TEMPLATE_IMAGES $_SESSION['language'] . '/catimg' $current_path '.gif''''''''title="' $box_categories_array[$i]['name'] . '"'); 
    This approach can be adapted to other foreground image displays as well.

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

    Default Re: Categories Dressing

    Qwert302 -

    The -> is set in admin > Configuration > Layout Settings >
    Categories Separator between the Category Name and Count.

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

    Default Re: Categories Dressing

    Boggled -

    You are making things more complicated than they need to be for your situation.
    Instead of making headings that link to the first category in each section, and then hiding that category name, just make those category names look like headings. Use the built-in switch:
    PHP Code:
        switch(true) {
    // to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
    // uncomment the select below and set the cPath=3 to the cPath= your_categories_id
    // many variations of this can be done
    //      case ($box_categories_array[$i]['path'] == 'cPath=3'):
    //        $new_style = 'category-holiday';
    //        break; 
    and make a case for each of categories 1-6, referencing 'category-heading':
    PHP Code:
          case ($box_categories_array[$i]['path'] == 'cPath=1'):
            
    $new_style 'category-heading';
            break;
          case (
    $box_categories_array[$i]['path'] == 'cPath=2'):
            
    $new_style 'category-heading';
            break; 
    and then style a.category-heading {} the same as you have styled .catBoxHeading1.

  7. #367
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Quote Originally Posted by gjh42 View Post
    and then style a.category-heading {} the same as you have styled .catBoxHeading1.
    Thank you so much Glenn! I should have known I was overthinking it.

    The links are working now, but I can't get them styled. I've added the a.category-heading{} to my stylesheet, but they don't appear to be picking up any styling whatsoever. I tried commenting out the catBoxHeading1 and various other combinations, but nothing worked.

    Here is what I have in my stylesheet:
    Code:
    	
    .catBoxHeading1 { 
        font-family: "Lucida Grande", tahoma, verdana, arial, helvetica, sans-serif;
    	font-size:1em;
    	font-weight: bold;
    	padding: 0.1em 0 0em 0;
    	display: block;
        color: #ffffff;
    	text-align: center;
        background-image: url(../images/red/sideboxbg.gif);  /*uncomment to use background image with or without coded text*/
        height: 20px;  /*uncomment to use background image without coded text*/
        width: 160px;
    	border: 3px ridge #F9F9F9; 
    	border-style: ridge;	
        margin-top: 2px;
        margin-bottom: 2px;
    	margin-left: -6px;
        } 
     	
    
    .catBoxSubtext {
        /*font-family:  'times new roman', serif;*/
        font-weight: normal;
        font-size: 1em;
        color: #000000; 
        padding: 0.1em 0.2em 0.1em 1.0em;
    	background-color: transparent;
    	border-top: 2px solid #E4E0D7;
    	padding: 4px;
        }  
    
    /*display all cat box links as block*/
    #categories a {
        background-repeat: no-repeat;
        display: block;
    	border-top: 1px solid #F3F3F3;
    	border-bottom: 1px solid #A9A294;
    	border-left: 1px solid #D9D9D9;
    	border-right: 2px solid #A9A294;
        }
    
    	
    a.category-heading {
        font-family: "Lucida Grande", tahoma, verdana, arial, helvetica, sans-serif;
    	font-size:1em;
    	font-weight: bold;
    	padding: 0.1em 0 0em 0;
    	display: block;
        color: #ffffff;
    	text-align: center;
    	background: #244B86;
        background-image: url(../images/red/sideboxbg.gif);  /*uncomment to use background image with or without coded text*/
        height: 20px;  /*uncomment to use background image without coded text*/
    	/*width: 157px;*/
        margin-top: 2px;
        margin-bottom: 2px;
    	margin-left: -6px;
    	}
    
    	
    /* example for  top category styling */
    a.category-top-text {
    	display: block;
    	background-color: #E9E9E9;
    	border-top: 2px solid #ECECEC;
    	padding: 4px;
        color: #000000; 
        margin: 0.0em 0;
        padding: 0.2em 0.3em;
        } 
    
    a.category-subs-text, a.category-products-text  {
        background-color: #ffffff;
        border-top: 1px solid #E6E6E6;
        border-bottom: 1px solid #D1D1D1;
        border-left: 1px solid #D9D9D9;
        border-right: 2px solid #D1D1D1;
        color: #000000; 
        margin: 0.0em 0;
        padding: 0.2em 0.3em;
        } 
    
    /* uncomment for  top category hover effects (add ,  a.category-subs-text, a.category-products-text if desired) (use  background-image if desired)*/
    a.category-top-text:hover {
    	 color: #000000;
    	 border-top: 1px solid #f5f5f5;
    	 border-bottom: 1px solid #f5f5f5;
         background-color: #ffffff;
        } 
    	
    a.category-subs-text:hover, a.category-products-text:hover  {
    	 color: #000000;
         background-color: #93C632;
        }
    Site: www.nybgear.com

    Do you see what I'm doing wrong? I know it's bound to be something simple that I'm overlooking.
    I'll finish that project tomorrow, I've made enough mistakes today!

  8. #368

    Default Images as categories

    Is their a way to center the images you use as category names? you can see my problem here:

    http://www.optifact.com/zencart
    http://www.signsinthemaking.com - Real Estate and Custom Signs!

  9. #369

    Default Re: Images as categories

    Also is their a way to add a space between the images? you can see my problem here: http://www.optifact.com/zencart
    http://www.signsinthemaking.com - Real Estate and Custom Signs!

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

    Default Re: Images as categories

    SITM -
    Add text-align: center; and margin-top: .5em; to your #categories a{} rule:
    Code:
    #categories a { 
        background-repeat: no-repeat;
        display: block;
        text-align: center;
        margin-top: .5em;
        }

 

 

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