You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, there is no ability to add html code to the menu items via admin panel's menu page.
Technically, you could - but the html stored in the menu item value is escaped, and raw html code becomes visible in frontend.
There are various real-world scenarios, where menu items are to include different icons before each item (not ONE icon - this is quite simply could be done using css pre, but VARIOUS icons), or even contain the icon only (for example, envelope instead of "Mail us").
This seems more like than enhancement, rather than bug, but it will be very useful if admin panel provided the capability to render unescaped HTML menu item values.
At the moment, there is no ability to add html code to the menu items via admin panel's menu page.
Technically, you could - but the html stored in the menu item value is escaped, and raw html code becomes visible in frontend.
There are various real-world scenarios, where menu items are to include different icons before each item (not ONE icon - this is quite simply could be done using css pre, but VARIOUS icons), or even contain the icon only (for example, envelope instead of "Mail us").
This seems more like than enhancement, rather than bug, but it will be very useful if admin panel provided the capability to render unescaped HTML menu item values.
P.S. https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child , combined with pre of course will do the trick, but the overall way of doing that seems hacky and unclean.
The text was updated successfully, but these errors were encountered: