Site logo

Archived topic

Hello i keep getting this on an seo site check :

4 replies · Started by guevara on June 4, 2020

Viewing posts 1–5 of 5

Hello i keep getting this on an seo site check :

Your webpage is using the nofollow meta tag. You are advised to use this tag carefully since search engines will not crawl all links from your webpage.

How do i get rid of that - Please help

a class="generate-back-to-top" data-scroll-speed="400" data-start-scroll="300" href="#" rel="nofollow" style="opacity:0;visibility:hidden;" title="Scroll back to top"

Hi there,

I don't think it matters at all but you can remove the nofollow from the back to top button using this PHP snippet:

add_filter( 'generate_back_to_top_output', 'tu_custom_back_to_top_icon' );
function tu_custom_back_to_top_icon() {
    printf(
		'<a title="%1$s" href="#" class="generate-back-to-top" style="opacity:0;visibility:hidden;" data-scroll-speed="%2$s" data-start-scroll="%3$s">
				<span class="screen-reader-text">%5$s</span>
				%6$s
			</a>',
			esc_attr__( 'Scroll back to top', 'generatepress' ),
			absint( apply_filters( 'generate_back_to_top_scroll_speed', 400 ) ),
			absint( apply_filters( 'generate_back_to_top_start_scroll', 300 ) ),
			esc_attr( apply_filters( 'generate_back_to_top_icon', 'fa-angle-up' ) ),
			esc_html__( 'Scroll back to top', 'generatepress' ),
			generate_get_svg_icon( 'arrow' )
	);
}

Adding PHP: https://docs.generatepress.com/article/adding-php/

Thanks a million.

No problem :)

This archived topic is closed to new replies.