[Resolved] Hello i keep getting this on an seo site check :

Home Forums Support Hello i keep getting this on an seo site check :

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1314571
    guevara

    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

    #1314597
    guevara

    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”

    #1314763
    Leo
    Staff
    Customer Support

    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/

    #1315220
    guevara

    Thanks a million.

    #1315816
    Leo
    Staff
    Customer Support
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.