Archived topic
Missing ALT text and Title text on Logo
7 replies · Started by Ramona on October 10, 2019
I am missing both the Alt text and Title text for the Logo on this website and it is causing an Accessibility error:
http://www.sustainablepavingsystems.com/
When I don't have the Menu next to the Logo, both the Alt text and the Title text are present like on this Website:
https://bomaniteoklahoma.bomanitelicensee.com/
I configured both through the Customizer. Do I need to apply a filter on the SPS site, or is this a Bug?
Hi there,
Does the site have any custom functions? Specifically, any filters referencing generate_logo_title?
Hi Tom,
Thanks for responding. I have functions to Add Custom Fields to FooGallery settings, and a function that Adds the Version number to the Child Theme (cache busting). None of these functions utilize the Filter generate_logo_title.
I have a staging site where I can create an Admin User and Password. How do I get the Credentials to you?
That would be great - you can send those details through the Account Issue form here: https://generatepress.com/contact
Be sure to mention this topic :)
Thanks!
Hi there,
This is happening because you have no Site Title set in "Settings > General".
If you can't set a title there, you need to add the alt to the site logo like this:
add_filter( 'generate_logo_title', function() {
return 'Your alt text here';
} );
Let me know if you need more info :)
Hi Tom,
Thank you so much for identifying the solution for me! WOW! This is a site that I rescued from another Hosting Company that had originally done the Website Development in 2014. Unfortunately, their team allowed the site to get HACKED. I pulled it away from their Hosting to SiteGround Hosting, cleaned up the hacked files and code, and, OF COURSE, changed the Theme to GeneratePress. I never even thought to check the Site Title ... because why wouldn't I ASSUME it was there? You know what they say about ASSUME! (smile). Sorry it was such a trivial matter, but again, Thank You So MUCH for your help!
No problem! Glad I could help :)