How To Add Top To The Page Link WordPress Blog

Posted by


If wordpress blog index page or category page has too many posts and users want to go to the top then they have to scroll up to the top. To overcome from this problem, you can add a link at the bottom of the posts on category or index page through which users can directly go to the top of that page.

First open header.php and verify that you have a <div id=”header”>, if not then add it. Now, you need to edit either category or index page template where you want to add top to the page link and add this code:

<a href=”#header”>Top To The Page</a>

If you want to put it each post on index page then add it inside the loop.

That’s it!


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.