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?
- The topic ‘Assistive text in header and Google descriptions result’ is closed to new replies.