O'Reilly logo

WordPress 2.7 Cookbook by Jean-Baptiste Jung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a print stylesheet to your blog

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

Getting ready

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required