[Resolved] No page scroll after clicking read more link

Home Forums Support [Resolved] No page scroll after clicking read more link

Home Forums Support No page scroll after clicking read more link

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #125698
    Anton

    When using the “more” tag I believe the default WordPress behaviour should be such that when the user clicks on the link and the full post page opens, the page should scroll down to where the more tag is so they can quickly continue reading from where they left off. However, in GP this does not seem to be working for some reason and there is no page scroll.

    By default, clicking the .more-link anchor opens the web document and scrolls the page to section of the document containing the named anchor (#more-000). This section is where writers choose to place the <!–more–> tag within a post type.

    From: https://codex.wordpress.org/Customizing_the_Read_More

    #125735
    Tom
    Lead Developer
    Lead Developer

    Nice find – just fixed this for the next version 🙂

    #130701
    Kade

    Is there a way to disable this? I prefer it to open without the scroll.

    #130709
    Tom
    Lead Developer
    Lead Developer

    Yes there is, I made sure it would be easy to have it either way.

    You can use this function: https://gist.github.com/generatepress/0fa7d2e63899858866a3

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    #156006
    Larry

    Another thumbs up!

    Thank you

    #156031
    Tom
    Lead Developer
    Lead Developer

    No problem!

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