Archived topic
using picture in menu
3 replies · Started by Jacobien on April 30, 2020
Hi
I use a photo instead of an icon in my menu. I did this as described in https://generatepress.com/forums/topic/add-image-to-primary-menu/. However when I hover over it it does not change color as the other menu items. (https://www.nicoletteanna.nl/nieuw/yoga/) I first use the font awesome plugin (as described in https://docs.generatepress.com/article/adding-icons-to-menu-items/) and use the home icon but this plugin makes a error on the website since the latest update.
Second it is to much on the top I try to fix this with CSS and Photoshop but without luck
Thanks in advance for the early reply. Kind regards Jacobien Mollema
Hi there,
you cannot change the color of a PNG / JPEG using CSS.
You would need to insert an inline SVG directly into the navigation label to do that.
Hi David, thanks for your answer. How do I insert an inline SVG directly into the navigation label?
You can open your SVG image in a text editor, IDE or this site:
https://jakearchibald.github.io/svgomg/
And then simply copy the markup into the Navigation Label field in the Menu item