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

colors, styles, menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-30-2006, 01:12 PM
 
maximer maximer is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default colors, styles, menu

Hi,

I want change the color of Special and Help menus but it is linked (by css, VertMenuCatTitle, ...,...) with main menu so any changes occur both.
How to change Special menu color (bg, font, separator...) ?


Regards

maximer
__________________
Version 4.0.18
Reply With Quote
  #2  
Old 10-30-2006, 10:46 PM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default Re: colors, styles, menu

you could create a new class in your css file, making the changes you want.

.VertMenuTitle2 {
BACKGROUND-COLOR: #081589; COLOR: #ffffff; FONT-WEIGHT: bold; FONT-SIZE: 10px;
}

then change the class="VertMenuTitle2" in the files you want to change styles in.
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
Reply With Quote
  #3  
Old 10-30-2006, 10:56 PM
 
maximer maximer is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: colors, styles, menu

Quote:
Originally Posted by neroag
you could create a new class in your css file, making the changes you want.

.VertMenuTitle2 {
BACKGROUND-COLOR: #081589; COLOR: #ffffff; FONT-WEIGHT: bold; FONT-SIZE: 10px;
}

then change the class="VertMenuTitle2" in the files you want to change styles in.

Hi,

so far I understand but I don't know where apply in code.
look:
in home.tpl I have "{include file="help.tpl"}"

help.tpl looks
{* $Id: help.tpl,v 1.19 2004/06/04 12:52:38 svowl Exp $ *}
{capture name=menu}
{if $usertype ne "C"}<A href="help.php?section=contactus&mode=update" class="VertMenuItems">{$lng.lbl_contact_us}</A><BR>{/if}
{if $usertype eq "C"}<IMG src="{$ImagesDir}/customer_images/vert_menu_bullet.gif" width="27" height="16" border="0">{/if}<A href="help.php?section=business" class="VertMenuItems">{$lng.lbl_privacy_statement} </A><BR>
{if $usertype eq "C"}<IMG src="{$ImagesDir}/customer_images/vert_menu_bullet.gif" width="27" height="16" border="0">{/if}<A href="help.php?section=conditions" class="VertMenuItems">{$lng.lbl_terms_n_conditions }</A><BR>
{if $usertype eq "C" and $login eq ""}{if $usertype eq "C"}<IMG src="{$ImagesDir}/customer_images/vert_menu_bullet.gif" width="27" height="16" border="0">{/if}<A href="help.php?section=Password_Recovery" class="VertMenuItems">{$lng.lbl_recover_password}< /A><BR>{/if}
{*{include file="pages_menu.tpl"}*}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php" hide_bullets=1 hide_border="Y"}

where to insert my new class ?

maximer
__________________
Version 4.0.18
Reply With Quote
  #4  
Old 10-30-2006, 11:13 PM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default Re: colors, styles, menu

help.tpl uses menu.tpl to call the styles i believe so create a new class in your css file as the post above named .VertMenuTitle2, create a new file called menu2.tpl (a copy of menu.tpl) & change the the class="VertMenuTitle" to class="VertMenuTitle2"


Then in your help.tpl change the include file="menu.tpl" to include file="menu2.tpl"
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
Reply With Quote
  #5  
Old 10-31-2006, 02:37 AM
 
maximer maximer is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: colors, styles, menu

Quote:
Originally Posted by neroag
help.tpl uses menu.tpl to call the styles i believe so create a new class in your css file as the post above named .VertMenuTitle2, create a new file called menu2.tpl (a copy of menu.tpl) & change the the class="VertMenuTitle" to class="VertMenuTitle2"


Then in your help.tpl change the include file="menu.tpl" to include file="menu2.tpl"

Unfortunately nothing changes

maximer
__________________
Version 4.0.18
Reply With Quote
  #6  
Old 10-31-2006, 02:55 AM
 
maximer maximer is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: colors, styles, menu

Quote:
Originally Posted by maximer
Unfortunately nothing changes

maximer

Probably problem exist here:

menu2.tpl ...
{if $usertype eq "C"}
{ include file="menu_customer.tpl" menu_title=$menu_title menu_content=$menu_content link_href=$link_href link_begin=$link_begin link_end=$link_end style=$style}
{else}
.....

so , should I create menu_customer2.tpl ?

maximer
__________________
Version 4.0.18
Reply With Quote
  #7  
Old 10-31-2006, 03:29 AM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default Re: colors, styles, menu

You will need to change the class="VertMenuTitle" to class="VertMenuTitle2" in every tpl what you want to use your new style in, ive just shown what i would do in help.tpl so you will need to work around for other files in a similar manner.

also delete all the files in your templates_c folder to update any changes
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
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 10:12 PM.

   

 
X-Cart forums © 2001-2020