View Single Post
  #216  
Old 09-11-2013, 10:15 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
I want make menu in this style long category name in two lines and some categories will be highlighted in different color.


It's not possible to 'wrap' category names, but you can change colours...

First obtain the numerical categoryid value(s) of the categories you want to change the colour of.

Then in skin/reboot/custom/header/categories_header.tpl

Replace...

Code:
{foreach from=$categories_menu_list item=c} <li>

With...

Code:
{foreach from=$categories_menu_list item=c} <li class="cat_{$c.categoryid}">

Then in your theme CSS file, eg. skin/reboot/css/themes/blue.css

Insert...

Code:
li.cat_123 { background: #FF0000; } li.cat_246 { background: #00FF00; } li.cat_369 { background: #0000FF; }

Etc.

If you are using the 'custom' theme, then add the CSS code to skin/reboot/custom/reboot_head.tpl

Before...

Code:
</style>
__________________
xcartmods.co.uk
Reply With Quote