Site logo

Archived topic

#content at the end of url

1 reply · Started by Jagdish on March 26, 2019

Viewing posts 1–2 of 2

Google indexing my post urls with #content at the end.

Like https:// mysite. com /my-post/#content

Please suggest reason of this and how to remove.

That's strange. There's a link for screen readers in the header which serves as a shortcut for people who need it. You can remove it if you'd like:

add_action( 'after_setup_theme', function() {
    remove_action( 'generate_before_header', 'generate_do_skip_to_content_link', 2 );
} );

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

This archived topic is closed to new replies.