How To Make Your Blog Printer Friendly

Printer Blogging doesn’t end at the monitor.

Many readers print out interesting posts, but not if your website prints with text off the page, adverts and other useless content. Adding a print stylesheet to your blog is an easy method of ensuring that your content remains useful on paper.

Do you blog about phone reviews? It’s perfectly plausible that your readers will print out a few of their favourites and take them down to the shop with them. Life advice? A reader could print out your words, to read later on at their leisure. Almost every niche has a reason to be printed.

Setting Up the Stylesheet

  1. Create a new file in your text editor (e.g. Notepad), and save it as print.css
  2. Upload this file to your theme’s directory. (The same place where your main stylesheet is)
  3. Open your theme’s header.php, and beneath the following line:

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

Add:

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/print.css" type="text/css" media="print" />

How Do The Styles Work

The essential purpose of the print stylesheet is to remove content. To do this, look through your page’s source code for sections that can be removed. You then give all of these sections a rule which tells the printer not to show them.

For example, if I wanted to remove my whole sidebar, I would look at the page source, and discover that it is all held within a div that looks like this:

<div id="sidebar">
##Sidebar Content Here##
</div>

I now add the following rule to my print.css, and the sidebar will not be shown:

#sidebar {display:none;}

NB – Had the code said <div class=”sidebar”>, the markup would beging with .sidebar, not #sidebar.

What Should Be Removed?

In short, everything that isn’t either content or the title. In most blogs, that means that the following usually need to be removed:

  • Sidebars – The links, popular posts etc. in a sidebar are meaningless on a printed page.
  • Advertisements – You aren’t going to make any money from print-outs, so why annoy the reader?
  • Comment Forms – They can’t use them, so why waste space?
  • Footers – The title and URL of the page are printed on the top of every page, and your content is copyrighted without the notice needing to be printed. There is no need to add on your “Powered by…” notices and such.
  • Navigation, search bars or anything else you may have in the page’s header which isn’t related to the content.

Use the “Print Preview,” function in your browser to see the effect your changes are having, and continue taking away until the content is all that remains. As an example, you can see Pro Blog Design’s print stylesheet here.

Is your blog printer-friendly? Share your stylesheet with us.

Share

  1. Awesome tip! I am still relatively new to css, so this was a great find. Thanks.

  2. Michael Martin (1511 comments)9 August 07

    Hey Matthew – Glad I could help you out. We all have to start off at the start with CSS. Every tip helps.

    If you need some help sorting out a print stylesheet for your blog, just let me know. :)

  3. Michael– Once again every post you’ve put up so far is something that I have chosen to look into implementing.

    I will attempt this with my blog, and see how it goes in the coming days!

    Good work again!

  4. Michael Martin (1511 comments)14 August 07

    Thanks a lot Tyler. Looks like things went well for you with this. Just one bug to sort out. :)

  5. That’s great advice – I’ve recently setup a wordpress blog and will try to apply these changes.Thanks for the great post :-) John

  6. Michael Martin (1511 comments)4 February 08

    You’re welcome. I’m glad you found it useful. :)

  7. Mikko (5 comments)21 April 08

    Cool tip.

    I’ve seen a number of printed pages of my blog at home. My mom loves to print my own and my sister’s blog. Amf.

  8. Brad (10 comments)27 May 08

    I need some help. I have had the most difficult time finding a printer that can print greeting card envelopes. I’m talking about cheap Office Depot type greeting card envelopes (half fold and 1/4 fold paper for the envelopes). I have a brother MFC-5860CN and I can’t tell you the number of envelopes I have ruined trying to get the damn envelopes to print. If they don’t get jammed in my brother printer I get blotches of ink all over the front of the envelope as well as the print comes out crooked. I had an Epson Stylus C82 printer that worked perfectly and late last year it died so now I’m living in hell. I’m looking for a cheap printer so I can print envelopes and I don’t know which one to even look at. I contacted Brother and advised them of my problem printing greeting card envelopes and the lady told me, “that’s because your printer only prints #10 envelopes. Read your manual.” With that attitude I will never buy another Brother product. I went looking for help and got sarcasm. I figured I could print on any envelope, within reason of course. Any help would be greatly appreciated.

    Thanks, Brad

  9. Eddie (1 comments)29 July 08

    Great tip thanks. Working with stylesheets/CSS is not one of my favourite past times so these kind of tips are most welcome.

    Thanks again.

  10. Adam (18 comments)11 December 08

    Great tip, CSS can be exteamly helpful trying to format the paper to get the printer to print correctly to the page. I found that I was printing so many blogs, that I was running out of the ink cartridges for my printer!

  11. Thanks man ! Very Helpful and detailed Post .

    If you could Explain How can we add Extra parametrsIn Our Print Stylesheet that would be highly Appreciated ! (Like If i want to add a Black and White logo only in the Print stylesheet )

  12. Selene (1 comments)19 March 09

    Hi Michael,

    Many Thanks for the tip.
    I’m quite new to CSS so I try not to screw up the code. :-)

  13. If you look at the source code for my site (for example)…not being a spammer honestly, you will see 4 css page styles.
    This is a good lesson how the style sheets function as Michael suggests above.

    Thanks,

    Jimi P.

    PS by the way your AJAx edit function on the posts is great!!

  14. RadioHead (1 comments)1 May 09

    This is awesome. Thanks for posting this Michael. This will definitely help me out with my CSS for my site.

    • Michael Martin (1511 comments)5 May 09

      Welcome, let me know if you have any trouble with it! It doesn’t take too long to do really, hope it goes well! :D

  15. Diego R (1 comments)21 June 09

    Thanks for the advice. Applied it to my site within 5 minutes.

  16. Every piece of data necessary to succeed, from basic tools and commands to vocabulary and layout creation, is packed into the nice post.

  17. I look forward in implementing your post. Cool tip Michael!

    I will try to manage it with my blogs, and see how it goes in the coming days!

    Nice job!

  18. It’s perfectly plausible that your readers will print out a few of their favorites and take them down to the shop with them. Life advice..? A reader could print out your words, to read later on at their leisure. Almost every niche has a reason to be printed.

  19. Printers (2 comments)12 November 09

    Any suggestions on what kind of content we might want to add to the stylesheet?

  20. If you need ink for you printer when printing those blogs, visit the Printer Experts and order your new cartridge online. Saves time and compatibles save money.

  21. Tutorials, tips, they’re mostly to be printed out. Great thing to learn, although I doubt it if several bloggers would adapt to this.

  22. printers (2 comments)25 November 09

    Blogging is just not writing and restricting at monitor. Many readers, visitors often take print outs of any interesting information or article which they find on the web. But the owner or the blogger should ensure that the content of the blog remain useful on the paper as well.

  23. TheDocBlog has recently added some simple hidden features. When you print one of my articles, all the graphics, sponsor buttons, comment forms, and so on are turned off. Saving you some paper and the world some trees. More importantly it puts the article in a printer friendly format by removing the extra fat and making it easier to read.

  24. shower (4 comments)9 December 09

    the article let me realize that I need this kind of css, if somebody want to print my page he will find ugly page

  25. Sigurfreyr (2 comments)1 January 10

    Very helpful as to expected from your site!

  26. Sigurfreyr (2 comments)1 January 10

    Just wondering why my avatar image did not turn up last time?

  27. Hua Chen (7 comments)31 January 10

    I want to add a css style for print, but I don’t want to have a extra http request when viewing on pc. What can I do? Thank, you! Can you help?

  28. Great tips. Sometimes I also print some of the important information I see in the internet and if a blog have this stylesheet it is very helpful.

  29. Josh Levine (1 comments)10 May 10

    Amazing, didnt know this could be done, will definitely add it to my blogs

    great stuff!

  30. Yes, i am agree with the post topic, even i always print what i likes and waht i want to learn.

  31. Jogos Gratis (1 comments)26 May 10

    All the pieces of data necessary to succeed, from basic tools and commands to vocabulary and layout creation, is packed into the nice post.

  32. Thank you for sharing these awesome tips.

  33. Sports (1 comments)2 July 10

    I strongly agree, many readers who want to print there is an interesting article on his blog. I want to try using this for my blog.

  34. Great tips..Now I can make my blog that discuss about printer available on my blog’s readers. Thanks for your tips.

  35. Oyunlar (8 comments)21 July 10

    I look forward in implementing your post. Cool tip Michael!

  36. Pulseras (5 comments)31 July 10

    I’ll have another look at Dagon Design

  37. Saicy (1 comments)26 August 10

    Simply awesome! Thanks for those tricks. Im sure this will work great!

  38. Great post and useful tips.Many thanks for sharing.

Leave a Comment

Your reply will be added to the comment above (Below any other replies to this comment) -

(We DoFollow)

Not sure how to get an image with your comment?