I have a site I'm wanting to convert to MODx, and long ago I created custom image navigation buttons so each button could have two lines of text—each line with differently styling. I'm comfortable I think writing the css for styling the items, but unsure of how to get Wayfinder to properly insert the code. I've been reviewing the MODx main nav, which is very close to what I built several years ago using images. Can I actually just type the span tags in the resources Menu Title field?
ex.
CONTACT
Get In Touch with Jon
Would I just insert "<span>CONTACT</span> Get In Touch with Jon" in the Menu Title field?
-
☆ A M B ☆
- 24,524 Posts
Yes, you can use HTML tags and even MODX tags in the resource fields.
Or you could use a different field, even a TV, and use both MODX tags in the linktext area of the rowTpl chunk instead of [[+wf.linktext]].