Make Your WordPress Posts Printer-Friendly

Even when most of the information we gather and transmit now comes in digital form, it’s still a good idea to provide your blog readers an option to print out your blog posts.

Good thing there’s this nifty WordPress plugin called WP-Print that will let your readers print your articles by placing a nice ‘Print This Post’ button link at the bottom of each of your posts.

The people at opensourcetalking made an easy-to-follow step-by-step tutorial on how you can make your WordPress posts printer-friendly and I’m happy to share it with you here.

  1. Go to the plugin’s download page.
  2. Click on the orange download button (Download Version 2.5)
  3. Once download is complete, simply extract or unzip the file on your desktop
  4. Log in to your site’s files via FTP and head over to /wp-content/plugins/
  5. Upload the “wp-print” folder (which you extracted from the zip file) to /wp-content/plugins/
  6. In wp-admin, go to ‘Plugins’ and click “Activate” under “WP-Print

Next set of steps would be to make the link appear in your posts. There are 2 ways to do this:

The First Method is by simply adding this code to each post or every time you create a post (this is good if you only want a select few of your posts to be printer-friendly):

[print_link]

The result will look like this:

The Second Method requires a little bit of coding but it will automatically append the printer-friendly link to [all] your posts.

Open wp-content/themes/YOUR_THEME_NAME/index.php

From here you have the option to edit any one of the file; single.php, post.php, page.php, or theloop.php

Once you’ve chosen which file to use, look for the following line of code:

<?php while (have_posts()) : the_post(); ?>

If you don’t want to print a portion of your post’s content, just enclose it [donotprint][/donotprint] tag as shown in the example below:

[donotprint] Text within this tag will not be display when printing [/donotprint]

However, it will still be displayed as normal on a normal post or page view.

Also, if you’re using WP-Email, any text within the [donotprint][/donotprint] tag will not be emailed as well.

WP-Print will load print-css.css, print-posts.php, and print-comments.php from your theme’s directory if it exists. If not, it’ll just load the respective default file that comes with WP-Print. This will also allow you to upgrade WP-Print without having to worry about overwriting the printing styles or templates you created.

]

Incoming search terms for the article:

Related Posts

Creating a Psychedelic Art Effect in Your Portraits

EWWW Image Optimizer

Inspirational Photo Retouches By Cristian Girotto

Create Your Own Sticker Design Via Photoshop