Create a Scroll to top link on your WordPress blog

January 13, 2009 · Print This Article

When you finished to read a blog post it can be very boring to scroll back to top manually. In order to enhance your blog navigation and usability, here’s a article to create a simple – but useful – way for your reader to scroll back to top in a second.

First, open header.php and verify that you have a <div id=”header”> somewhere. This should be the case on more than 95% of blogs anyways.

Open footer.php (or any other file) and insert the following code where you want your link to appear:

<a href="#header">Scroll to top</a>

That’s all. Now, your readers can easily scroll to top after reading a post.

Your choice for site templates and wordpress themes


Got something to say?

You must be logged in to post a comment.