Google Translate

Wednesday, September 28, 2005

Print noview

Hey kiddies,

Is someone accusing you of blogging about something offensive? Is that someone also printing your blog? And is that person using his/her print-out of your blog as evidence of his/her accusation against you?

Well, you can stop that (at least for the second question)!

If you can edit your blog's template, and if you aren't afraid of looking at geeky code, then follow these steps:
  1. Go to your blog's settings page to edit your template. In Blogger, it's the big "Template" tab when you're looking at your blog's settings.
  2. In the template code, look for </head>.
  3. In the line above </head>, insert this little snippet of code: <style type="text/css" media="print"> body {display:none;} </style>
  4. Save your template.
  5. Republish your blog (if the saving doesn't automatically republish).
Ta-da! Now if you (or anyone else) prints your blog, all you'll get is a big empty page!

Of course, that someone could still print your blog, e.g. with a print screen, or saving your blog. But if that someone is technically saavy enough to do any of that, then you really should have kept your blog under tighter wraps.

If you cannot edit your blog's template:
  • If you're using a free account at LiveJournal, then just set all of your blog entries to private. Now no one but you can read (and print) your blog.
  • If you're using some other blogging tool, sorry, I can't help you there.
Ok, kiddies. Now go back to your books and do mama and papa proud.


Technorati tags: ,


Tym said...

Nifty trick! You know all sorts of stuff.

Jonathan said...

one other trick is to have the text in the same color as the background/graphics.

only by doing a 'select all' can the readers actually read the blog.

Post a Comment