1
Mazarin
Changing color of links in MultiMenu
  • 2010/6/1 6:08

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


I've been trying for a while to change the color of the links in one of my menus in MultiMenu. If I understand correctly, you should be able to specify this directly in the menu, but my French (or understanding of how MultiMenu works) just isn't good enough to understand exactly.

Here's what it says:
Quote:
Style des liens

Vous pouvez attribuer un style sp?cifique ? chaque lien.
Les informations indiqu?es ici, seront r?percut?es dans la balise : style="".
Vous devez donc ?crire vos d?finitions comme dans une feuille de style normale, sans indiquer de class ou d'id.

Exemple :
color:Red; font-weight:bold; border: 1px plain Red;


Notez que le style sera appliqu? au lien dans la liste admin des liens, pour mieux vous rendre compte du r?sultat.

Les d?finitions indiqu?es pour chaque lien seront donc prioritaire sur toute d?finition d?clar?es pr?c?demment (th?me du site, feuille de style du module ou du menu en cours,...)
Si le style ne s'applique pas, v?rifiez bien que la template du menu activ? comporte bien la code suivant dans la d?finition du lien.

Exemple :
style="<{$item.css}>"<{/if}> > <{$item.title}>


Anyone have any suggestions on how to make it work?

2
ghia
Re: Changing color of links in MultiMenu
  • 2010/6/1 9:16

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Link Style

You can assign a specific style to every link.
The entered style is used in a style="" tag.
You can specify the definitions as in a normal style file, without specifying a class or id.
Eg :
color:Red; font-weight:bold; border: 1px plain Red;

Note that the style will be applicated to the link in the admin list of links, for a better awareness of the result.

The specified definitions have priority above every other previous style definitions (theme of the site, CSS file of the module or current menu, ...).
If the style is not applicated, verify that the template of the active menu has following code in the link definition.
Eg :
<a href="<{$item.link}>" <{if $item.css}>style="<{$item.css}>"<{/if}> > <{$item.title}> a>

3
Mazarin
Re: Changing color of links in MultiMenu
  • 2010/6/1 19:38

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Thx for the translation ghia.

Unfortunately, the change is visible in the admin menu but not on the page, despite having the right code in the template.

BTW, anyone interested in translating this module into English so the rest of us can have a go at different languages? A lot is already translated, but not all.

Login

Who's Online

305 user(s) are online (215 user(s) are browsing Support Forums)


Members: 0


Guests: 305


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits