I’m building a custom theme from a client’s design, which involves a post feed situated somewhat down the page with some pagination links. It’s a static home page, and the pagination is working fine, except that it reloads the page and thus, scrolls back to the top, which makes the user have to scroll down to see what the next post is.
Example here (specifically the “Latest News” section): http://storkanishdesigns.com/artistsites.storkanishdesigns.com/samanthaschmid/
The pagination code I’ve got is:
<?php previous_posts_link($previous_posts_image); ?>
Is there a way I can add a “#name” target to the pagination links, so that it’ll load the new page in the scrolled down position?
- The topic ‘Add target applied to pagination links?’ is closed to new replies.