![]() |
font color for new category has deferent color then all other. Why?
I added a new category to the flyout menu, and for some reason the fonts of this new category are not same color as all other category in the menu.
Please, if anyone can help me fix it . Thanks in advance, |
Re: font color for new category has deferent color then all other. Why?
You added it manually or through the categories menu? If manually in the code then you probably have to assign css class to it
|
Re: font color for new category has deferent color then all other. Why?
As i always do. Category > add new...
|
Re: font color for new category has deferent color then all other. Why?
You somehow have different css class assigned to this last item - class="empty-link"
|
Re: font color for new category has deferent color then all other. Why?
What is that i need to do to fix it?
|
Re: font color for new category has deferent color then all other. Why?
In the categories template code you need to check and see why this class is for the last link. Or you can change the color for this css class but this may change color to something else as well
|
Re: font color for new category has deferent color then all other. Why?
here? do you see something? thanks
{* $Id: categories.tpl,v 1.35 2009/05/12 07:37:15 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=menu} {if $active_modules.Flyout_Menus} <img src="{$ImagesDir}/spacer.gif" alt="" class="fancy-height-extender" /> {include file="modules/Flyout_Menus/categories.tpl"} {assign var="additional_class" value="menu-fancy-categories-list"} {else} <img src="{$ImagesDir}/spacer.gif" alt="" class="height-extender" /> <ul> {foreach from=$categories_menu_list item=c name=categories} <li{interline name=categories}><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li> {/foreach} </ul> {assign var="additional_class" value="menu-categories-list"} {/if} <div class="categories-clearing"></div> {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu} |
Re: font color for new category has deferent color then all other. Why?
That is the categories.tpl - in your case you need to look in modules/Flyout_Menus/categories.tpl
|
Re: font color for new category has deferent color then all other. Why?
Here it is.
{* $Id: categories.tpl,v 1.1 2009/03/19 13:26:35 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $fc_skin_path} {include file="`$fc_skin_path`/fancy_categories.tpl"} {/if} |
Re: font color for new category has deferent color then all other. Why?
And that take takes you fancy_categories.tpl
|
Re: font color for new category has deferent color then all other. Why?
{*
$Id: fancy_categories.tpl,v 1.5 2009/06/25 05:28:28 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $fc_skin_path} <script type="text/javascript" src="{$SkinDir}/{$fc_skin_path}/func.js"></script> <div id="{$fancy_cat_prefix}rootmenu" class="fancycat-icons-scheme {if $config.Flyout_Menus.icons_mode eq 'C'}fancycat-icons-c{else}fancycat-icons-e{/if}"> {if $fancy_use_cache} {fancycat_get_cache} {elseif $config.Flyout_Menus.icons_mode eq 'C'} {include file="`$fc_skin_path`/fancy_subcategories_exp.tpl" level=0} {else} {include file="`$fc_skin_path`/fancy_subcategories.tpl" level=0} {/if} {if $catexp} <script type="text/javascript"> <!-- var catexp = {$catexp|default:0}; --> </script> {/if} <div class="clearing"></div> </div> {/if} |
Re: font color for new category has deferent color then all other. Why?
And this will take us to fancy_subcategories_exp.tpl. OMG so many templates calling each other just to show a simple categories list. Don't even bother to search for the reason, just open altskin.css, find
.welcome-top .fancycat-icons-e a.empty-link:link, .welcome-top .fancycat-icons-e a.empty-link:visited, .welcome-top .fancycat-icons-e a.empty-link:hover, .welcome-top .fancycat-icons-e a.empty-link:active, .welcome-top .fancycat-icons-c a.empty-link:link, .welcome-top .fancycat-icons-c a.empty-link:visited, .welcome-top .fancycat-icons-c a.empty-link:hover, .welcome-top .fancycat-icons-c a.empty-link:active { color:#A0818A; } and replace the color # with "#830227" |
Re: font color for new category has deferent color then all other. Why?
:-) it works only on main page.
Here sub.. {* $Id: fancy_subcategories_exp.tpl,v 1.5 2009/07/16 06:09:58 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} <ul class="fancycat-icons-level-{$level}"> {assign var="loop_name" value="subcat`$parentid`"} {foreach from=$categories item=c key=catid name=$loop_name} {if $config.Flyout_Menus.icons_disable_subcat_triangle eq 'Y' && $c.subcategory_count gt 0} {assign var=additional_class value="closed sub-link"} {else} {assign var=additional_class value=''} {/if} <li id="cat-layer-{$c.categoryid}"{interline name=$loop_name additional_class=$additional_class}> {strip} {if $config.Flyout_Menus.icons_disable_subcat_triangle eq 'Y' && $c.subcategory_count gt 0} <a href="home.php?cat={$catid}" class="arrow" onclick="javascript: return switchSubcatLayer(this);"></a> {/if} <a href="home.php?cat={$catid}" class="{if $config.Flyout_Menus.icons_icons_in_categories gte $level+1}icon-link{/if}{if $config.Flyout_Menus.icons_disable_subcat_triangle eq 'Y' && $c.subcategory_count gt 0} sub-link{/if}{if $config.Flyout_Menus.icons_empty_category_vis eq 'Y' && !$c.childs && !$c.product_count} empty-link{/if}{if $config.Flyout_Menus.icons_nowrap_category ne 'Y'} nowrap-link{/if}"> {$c.category|amp} {if $config.Flyout_Menus.icons_display_products_cnt eq 'Y' && $c.top_product_count gt 0} ({$c.top_product_count}) {/if} </a> {/strip} {if $c.childs && $c.subcategory_count gt 0 && ($config.Flyout_Menus.icons_levels_limit eq 0 || $config.Flyout_Menus.icons_levels_limit gt $level)} {include file="`$fc_skin_path`/fancy_subcategories_exp.tpl" categories=$c.childs parentid=$catid level=$level+1} {/if} </li> {/foreach} </ul> |
Re: font color for new category has deferent color then all other. Why?
Find all "empty-link" in altskin.css and replace the color
|
Re: font color for new category has deferent color then all other. Why?
Done.
As always you are very helpful. Thank you Steve. |
Re: font color for new category has deferent color then all other. Why?
np. glad you got it working
|
All times are GMT -8. The time now is 03:10 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.