Archived topic
No page scroll after clicking read more link
5 replies · Started by Anton on August 2, 2015
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.
Nice find - just fixed this for the next version :)
Is there a way to disable this? I prefer it to open without the scroll.
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/
Another thumbs up!
Thank you
No problem!
