- This topic has 17 replies, 4 voices, and was last updated 6 years, 3 months ago by
Tom.
-
AuthorPosts
-
February 26, 2018 at 10:13 am #506139
Ignacio
Hello,
What is it and what does this link do in the code?<a class="screen-reader-text skip-link" href="#content" title="Saltar al contenido">Saltar al contenido</a>It’s right after the body tag.
Regards
February 26, 2018 at 8:59 pm #506534Tom
Lead DeveloperLead DeveloperHi there,
It’s an element visible to people using screen readers. It’s an accessibility feature which allows them to navigate and use your website easier.
March 2, 2018 at 4:07 am #509553Ignacio
Hello,
Ok Tom, thank you so much for responding.
regards
March 2, 2018 at 10:30 am #509892Tom
Lead DeveloperLead DeveloperNo problem! 🙂
January 12, 2019 at 5:15 am #779822Ignacio
Hi
A doubt, how can i deactivate that line of code ?
Regards
January 12, 2019 at 8:21 am #780051Tom
Lead DeveloperLead DeveloperIf you really have to, you can do this:
remove_action( 'generate_before_header', 'generate_do_skip_to_content_link', 2 );March 8, 2019 at 3:31 am #832632Ignacio
hello
I’ve added a snippet with the function and it doesn’t remove the code. What other solution could there be ?
Regards
March 8, 2019 at 9:22 am #833092Tom
Lead DeveloperLead DeveloperHow did you add the code?
March 8, 2019 at 9:26 am #833096Ignacio
Hi Tom
with the Code Snippets plugin
Regards
March 8, 2019 at 5:00 pm #833378Tom
Lead DeveloperLead DeveloperTry this instead:
add_action( 'after_setup_theme', function() { remove_action( 'generate_before_header', 'generate_do_skip_to_content_link', 2 ); }, 50 );Let me know 🙂
March 9, 2019 at 12:44 am #833525Ignacio
Okay, perfect. It works.
Thanks !
March 9, 2019 at 7:54 am #833935Tom
Lead DeveloperLead DeveloperNo problem! 🙂
November 14, 2019 at 8:00 am #1063140Hilton
Hi Tom,
It seems that hiding text and links is a practice outside the Webmaster Quality Guidelines, as stated in the following URL: https://support.google.com/webmasters/answer/66353?hl
This way, how can I also remove these codes from pages:
<li class="search-item" title="Pesquisar"><a href="#"><span class="screen-reader-text">Pesquisar</span></a></li><div class="mobile-bar-items"> <span class="search-item" title="Pesquisar"> <a href="#"> <span class="screen-reader-text">Pesquisar</span> </a> </span> </div>Thanks
November 14, 2019 at 6:32 pm #1063532Tom
Lead DeveloperLead DeveloperWhen it comes to Google, you don’t need to worry about the screen reader text: https://www.searchenginejournal.com/google-using-hidden-text-for-screen-readers-will-not-hurt-rankings/294605/
November 15, 2019 at 9:10 am #1064199Hilton
Ok Tom, thanks for the explanation.
-
AuthorPosts
- You must be logged in to reply to this topic.