- This topic has 8 replies, 2 voices, and was last updated 3 years, 1 month ago by Tom.
October 16, 2017 at 2:57 pm #404468Lasse
I’m having a hard time getting the image ALT tag onto the logo in my navigation.
Is there a quick fix to this?
The site i’m working on is http://www.malta-siden.dkGP Premium 1.4.3October 16, 2017 at 9:39 pm #404599TomLead DeveloperLead Developer
Are you using a custom function for your navigation logo? The URL to the image isn’t currently set.
By default, the navigation logo should have an alt tag.October 16, 2017 at 11:57 pm #404624Lasse
There should be a logo now, sorry.
I used this guide ti put the logo in the navigation https://docs.generatepress.com/article/navigation-logo/
There is a alt tag but it’s empty.October 17, 2017 at 12:27 am #404635Lasse
I found a solution to the problem.
I use the filter generate_navigation_logo_output to make the alt tag.
But shouldn’t the alt tag stick to the logo by default when i change it in the media library?October 17, 2017 at 9:40 am #405041TomLead DeveloperLead DeveloperOctober 17, 2017 at 2:16 pm #405184Lasse
I did but no alt tag?October 17, 2017 at 6:24 pm #405296TomLead DeveloperLead Developer
I’m using the navigation logo here in the forum – you can see the alt tag in there.
Make sure to remove any functions filtering the navigation logo if you’ll be using the Customizer option.October 18, 2017 at 8:01 am #405621LasseOctober 18, 2017 at 4:32 pm #405901TomLead DeveloperLead Developer
GP uses your site title as the alt tag – do you have that set? (Settings > General).
It won’t use the alt for the image set in the Media Library, although maybe it should. I’ll look into that.
- You must be logged in to reply to this topic.