WordPress – How to Add a Print Button to Your Blog Posts

It’s a good practice to give your users a facility to print your blog posts. Of course user can print it directly via browser or keyboard shortcuts, but you can make this process easy to provide them a direct print button on the blog.

Just open up your single.php file (for individual posts) from the theme folder and add the following code wherever you want to have the Print option.

&lt;a href=&quot;<a title="See also Google Maps - Add Local Search" href="http://www.whileifblog.com/2010/07/14/google-maps-add-local-search/">javascript</a>:window.print()&quot; rel=&quot;nofollow&quot;&gt;Print this Article&lt;/a&gt;

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

More in Javascript, Tips, Wordpress (153 of 186 articles)


Post revisions, a new WordPress 2.6 feature, can be very useful, but they also increase the size of your MySQL ...