Archived topic
Sticky Menu Add Text, Add Icons to Nav Menu
3 replies · Started by Ben on August 1, 2018
Hi Guys,
A couple of things if that's OK -
1. Is there a way to add text / html to the sticky menu where the nav logo normally goes? Should I just use the generate_inside_navigation hook and then set the display with css or is there a better filter technique to use?
2. Also I am trying to add icons to the end of the main menu, which I have done by adding custom links to appearance > menus, and then an old image replacement technique to show the icons. It's not working with the sticky menu though and i'm guessing there should be a better way to do it these days - any recommendations?
Thanks
Ben
Hi there,
1. generate_inside_navigation is the right way to go. It should be similar as Tom's method here:
https://generatepress.com/forums/topic/change-logo-media-source-file-when-sticky/#post-304545
Let me know if you need more help with the code :)
2. Would this help?
https://docs.generatepress.com/article/adding-icons-to-menu-items/
Let me know :)
Thanks Leo,
#2 definitely helped, although I am using my own icon font from fontello (all FA icons, but only the ones I need), but the principle is the same and with some added css, it worked like a charm.
#1 looks promising - i'll give it a go later and let you know - thanks again, always such great support from you guys.
cheers
Ben
No problem! :)