Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

long category name in menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-09-2007, 07:03 AM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default long category name in menu

I have a shop here: virtualgeorge.com/shop/home.php


The menus look like this, when a category name is long and wraps to the next line, it starts the continuing line under the bullet image.
  • Bed Linen
  • Bath Linen
  • Blankets
  • Down Comforters
and Pillows
  • Robes, Pajamas
and Slippers

But I want it indented so all the text liines up, I want it to look like this
  • Bed Linen
  • Bath Linen
  • Blankets
  • Down Comforters
    and Pillows
  • Robes, Pajamas
    and Slippers
Any tips appreciated.
thanks!
__________________
Version 4.2.0 Gold
Reply With Quote
  #2  
Old 11-09-2007, 08:02 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: long category name in menu

Are you using actual <li> tags or an image? An <li> will automatically wrap the way you want it to.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-09-2007, 10:08 AM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

I don't know? Where would I look? Categories.tpl or menu.tpl ?
__________________
Version 4.2.0 Gold
Reply With Quote
  #4  
Old 11-09-2007, 10:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: long category name in menu

customer/categories.tpl is the default category menu.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-09-2007, 10:49 AM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

Can I post what I have for the template? Its only 18 lines. Or would that help?

thanks!
__________________
Version 4.2.0 Gold
Reply With Quote
  #6  
Old 11-09-2007, 10:51 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: long category name in menu

Yep, that would help
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-09-2007, 11:17 AM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} {else} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} <font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems iconlink">{$c.category}</a></font><br /> {/foreach} {else} {foreach from=$subcategories item=c key=catid} <font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems iconlink">{$c.category}</a></font><br /> {/foreach} {/if} {/if} {/capture} { include file="menu.tpl" imgtop="categories.gif" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}
__________________
Version 4.2.0 Gold
Reply With Quote
  #8  
Old 11-09-2007, 03:49 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: long category name in menu

What is this?

class="VertMenuItems iconlink"

Do you have some sort of background image set in skin1.css?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 11-09-2007, 04:43 PM
 
virtualgeorge virtualgeorge is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Re: long category name in menu

That is for the bullet image

.iconlink {
background:transparent url(images/bullet.gif) no-repeat scroll left center;
padding-left:10px;
}
__________________
Version 4.2.0 Gold
Reply With Quote
  #10  
Old 11-09-2007, 06:07 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: long category name in menu

Yea, you are going to want to get rid of that or else it won't wrap correctly. You need to add an order list (<li> tags) to your menu.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:21 AM.

   

 
X-Cart forums © 2001-2020