Hello,

First this is a nice little module "once I figured out how to get it to work"

I feel as if some additional documentation is needed - as I ran into some issues...

First it should be specified that when using Menu Markup adding info into the Link Markup area the actual set "Menu link title" will be replaced by the markup so you need to include the actual title you originally created in your link markup (separate from @title as it appears your using that to add hover description when rolling over the menu item).

For example I had as a menu link title: My Account
- When I added <i class="fa fa-cog"></i> in Menu Markup/Link Markup "My Account" disappeared and only the font-awesome cog displayed.
- So I need to add <i class="fa fa-cog"</i> My Account in Menu Markup/Link Markup area for it to display properly.

Second you need to "Clear" the Drupal cache anytime you add anything in Menu Markup/Link Markup or absolutely nothing happens (at least on Drupal core versions 9.5 and 9.5.1) and I mean this needs to be done every time after any new entry or edit to the Menu Markup/Link Markup is made (I would suggest adding to the module a clear menu cache function anytime a menu change is made to avoid this in the future), but for now it should be documented.

I honestly almost opened up an issue as a bug because nothing was happening after adding markup!

Other than that, this module made my life easier when adding icons to menu links (not having to use preprocess_menu_hook which was the path I was headed down before finding this) for that I give many thanks for this module!

Comments

sidgrafix created an issue.