Assistive text in header and Google descriptions result
-
Hi all,
My website is up and running (apart from a few minor glitches) and I’m currently trying to improve its ranking in search engines and the way is will be displayed in the search engine results.
I’ve noticed that the result in Google shows the assistive text from the header and I would like to have that removed. I copied the header.php file to my child theme folder and removed the following lines:
<h1 class="assistive-text"><?php _e( 'Menu', 'spun' ); ?></h1> <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'spun' ); ?>"><?php _e( 'Skip to content', 'spun' ); ?></a></div>
This seems to do the trick but I was wondering whether there is a way to keep the assistive text in the header without it showing up in the Google description of the site?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Assistive text in header and Google descriptions result’ is closed to new replies.