[Support request] #content at the end of url

Home Forums Support [Support request] #content at the end of url

Home Forums Support #content at the end of url

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #850132
    Jagdish

    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.

    #850641
    Tom
    Lead Developer
    Lead Developer

    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/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.