News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Virtuemart icon in admin menu [J4] FIX

Started by hazael, October 30, 2022, 23:34:07 PM

Previous topic - Next topic

hazael

Maybe it will be useful to someone?
I noticed that virtuemart item is added to the admin menu in an annoying last place in the list.
Additionally, in this system menu it is easy to get lost when there are a lot of other components.
Easy a way for the main Virtuemart item to be at the top of the list with an additional icon

Overwrite language constant in your language file:

COM_VIRTUEMART=" <span class='aaa' style='display:flex;align-items:center'><img aria-hidden='true' width='16' height='16' style='display:inline;margin-right:0.5em;' src='../components/com_virtuemart/assets/images/vmgeneral/menu_icon.png' /> <span style='line-height:normal;'>Virtuemart</span></span>"

Remember to add a space after the quotation marks at the very beginning - thanks to that Virtuemart will be at the top of the menu in alphabetical order