Add a Print button to your wordpress posts
November 5, 2008 · Print This Article
To include your print stylesheet, add the following line to your header.php file, within the <head> and </head> tags.
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/print.css" media="print" />
Now we have to create our “Print this” button. Open your single.php file and add the following line:
<a href="javascript:window.print()">Print this Article</a>
Your visitors are now able to print your posts easily with a nice print styling.





















Comments
Got something to say?
You must be logged in to post a comment.