TFF in menu + color change

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jonaskhn
Forum Members
Forum Members
Posts: 15
Joined: Sat Aug 15, 2009 2:35 pm

TFF in menu + color change

Post by jonaskhn »

Hi guys,

I am running CMSMS 1.6.3. I want to use a truetype font in my menu.

I've edited the included standard simple_navigation.tpl navigation menu, so I can use truetype fonts in the menu through the text embellisher.

I have replaced all instances of

{$node->menutext}

with

{cms_module module="TruetypeText" style="menustyle" text=$node->menutext}

and it works just perfect!

Now, my question is, is there a way for the active/selected menu item to be another color? I will need to edit simple_navigation.tpl, but I don't know how. Maybe it could call another pre-defined embellisher style that uses color, called "menustyleselected"?

Any help is greatly appreciated!

Kind Regards, Jonas
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: TFF in menu + color change

Post by Dr.CSS »

Active is most times called in the if currentpage class of currentpage line in the menu template, since you are using the true type font thing I don't believe it has any color choices iirc it is images not actual text so color:#efgh07 won't do anything...
jonaskhn
Forum Members
Forum Members
Posts: 15
Joined: Sat Aug 15, 2009 2:35 pm

Re: TFF in menu + color change

Post by jonaskhn »

Dr. CSS wrote: Active is most times called in the if currentpage class of currentpage line in the menu template, since you are using the true type font thing I don't believe it has any color choices iirc it is images not actual text so color:#efgh07 won't do anything...
Yes, you are right. The CSS is probably not going to help in changing the color.

To get another color, I will have to define a new style in the text embellisher, an text embellish with color. Then, in the menu tpl file, I will have to edit the script so that ACTIVE menus are rendered using the new text embellisher style that has color. I just don't know how to do that ...
Post Reply

Return to “Layout and Design (CSS & HTML)”