Tagged: icon, menu, submenu icon
-
AuthorPosts
-
January 20, 2024 at 5:20 pm #1431582
Hi,
I want to add a custom icon to my submenus. How I can add? I already did icon design for my menu. How can I them to the submenu?
Thanks
January 21, 2024 at 10:38 pm #1431642Hey karacafer,
You can add your icon with css, first you would determine the menu ID for the menu item, in this example it is #menu-item-3059
then use that ID in this css and the URL to your icon:#menu-item-3059 span.avia-menu-text:before { content: url(https://img.icons8.com/color/17/wordpress.png); display: inline; padding-right: 10px; vertical-align: sub; }This is how this example worked:

Then repeat this for each menu item.Best regards,
MikeJanuary 23, 2024 at 2:48 pm #1431791Hi,
Thanks for your message. I have a question. The icon and page name don’t look in the same line. How can adjust the icon?
January 23, 2024 at 5:29 pm #1431804Hi,
Please link to your page so we can examine the elements and advise.Best regards,
MikeJanuary 23, 2024 at 9:32 pm #1431818Hi,
I added my test page login info to private content. Please check.
You can add the code in the Customize css part.
Thanks
January 24, 2024 at 7:34 am #1431847Hi,
Thank you for the info.
You can add the top css property to the previous css code to adjust the vertical position of the icon.
#menu-item-39 span.avia-menu-text:before { content: url(https://img.icons8.com/color/17/wordpress.png); display: inline; padding-right: 10px; vertical-align: sub; top: 1px; position: relative; }We tried to apply this modification to the site but the account above is not an admin.
Best regards,
IsmaelJanuary 24, 2024 at 6:29 pm #1431933It worked, thanks
January 24, 2024 at 6:30 pm #1431934Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Submenu Custom Icon’ is closed to new replies.
