Post Pic

How to: Create a “Scroll to top” link on your WordPress blog

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 recipe 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.

Related Posts

Related Posts

No related posts.

2 Responses

Aug 04 2011 05:56

thanks! Didn’t know that. The simple tip helped!

Jan 01 2012 20:48

Thanks! You save me! :D Fiuhhh… Finally I found it…

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required