CMenu - one of the links should look like that: <b>ABC</b>DEF

Hey guys,

I got the problem, that one of my links in a menu should be bold in one part of the word and the other should be "normal" as the other links. so the menu should look like that:

<b>abc</b>def | xyz | qwe | rtz

I couldn’t find any smooth solution for this issue. Anyone of you maybe could help me? The hard coded way isn’t really the thing I want to use here and the way to split the “half bold, half not” link into 2 links and than merge it together via css isn’t really my best friend as well :wink: … I guess this will end up in problems with different browsers etc.

Tanks in advance,

Mayjestic

Hi!

maybe this ??

in items => array(




array(

      'label'=>'<b>abc</b>def',

      'url'=>array('...'),'itemOptions'=>array('...'),

     ),



the label property accepts HTML code :rolleyes:

Hmm … doesn’t work for me. :frowning: Do I have to configure anything else to make it accept html code? … tried this before as well.

Use your CMenu with its property "encodeLabel" set to false.

CMenu reference

ohh man, thanks a lot man … finally it’s so easy ;-).

Omy! I forgot about this property in code ::)

… thanks anyway for your help ClaCS :wink: