While creating web sites for my company, most of our clients ask us to create print functions for the web site which we're designing for them. Yes, it can seem a little obsolete in a technically advanced world and it isn't green at all, but the fact is that many Internet users still print pages for offline consultation.
In this recipe, we shall learn how to create a print button and add it to your blog, as well as creating an efficient print stylesheet..
To achieve this recipe we need to perform two actions. The first action is to create a print button and add it to your single.php
file. The second action is to create a CSS stylesheet specially designed for printing so that we can hide the useless parts of the page (while being read offline) such as site footer or sidebar.