Archived topic
Image as navigation item
4 replies · Started by xdaniel on September 30, 2015
HeyHo,
maybe I don't look for the right search terms.
Is there a way to add an image (not font awesome / need jpg or png) with link, left to the search icon in primary navigation? This would be so great ;)
Best, Daniel
Hi Daniel. This post might help:
https://generatepress.com/forums/topic/adding-an-image-to-the-nav-bar/
You'd need to use a different class (the theme already uses .site-logo), add a link and then float it right.
You should also be able to add the image HTML directly to a "Custom Link" in "Appearance > Menus".
You would just do something like this: <img src="URL TO YOUR IMAGE" alt="" />
Just make sure the image is the right size to fit in a menu item.
Yes that worked, but it's hard to align an image :-)
It will definitely take some tweaking :)
