Better post printing in WP

Sometimes, it is usefull to print an article. Then you don’t want to have the sidebar, comment forms and so on. So, I simply put thoses 4 lines in the header template and it will save some paper. (I don’t show the sidebar when displaying a single article.)

<style type="text/css" media="print">
#commentform {
display:none;
}
</style>

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: