Print Post and Page

Description

Printer Friendly

Strips theme styling from post and page content while retaining any plugin CSS to allow Shortcode content to be printed as it’s displayed. This is to save printer ink and only print the post content in a user friendly way.

Printing Posts

After installing the plugin simply go to the setting page and tick the active box. This will add the print icon to all posts, allowing for a very quick installation. Configure the color and sizing options to get the print icon and text looking as you want it to.

Now when someone clicks the print button it’ll open a print dialog to allow the post to be printed.

To disable the print button on specific posts, simply find the post and edit it. In the post edit screen there will be a new box added to the bottom right of the page to disable the print icon for this post.

Printing Pages

Unlike posts, with pages you have to add a shortcode [printicon align= »left »] to the pages that you want the print icon to be displayed on. This has the option of align to align the icon either ‘left’ or ‘right’.

The shortcode itself can be added before or after the content to place it and gets its color and sizing from the setting menu.

Customize the Icon

When the plugin is activated it will a menu to the admin side menu called ‘Print’. In this menu you can set the icon size, change the icon color, set the text label as well as changing alignment and placement.

The print icon used is part of Font Awesome.

PLEASE NOTE

There may be slight differences in printout between browsers. There’s no standardized print functionality, so all browsers interpret the document differently.

Thanks

Font Awesome – Print Icon – License

Spectrum Colorpicker – jQuery Color Picker Plugin in the Admin Menu – License

Thanks to Ben Nadel for his article on Print Part of a Website, This is a great article and great resource in general.

Thanks to Patrick Evans for his answer on Stackoverflow – This is licensed under CC BY-SA 3.0 – This snippet was modified to help with getting the content to print.

Captures d’écran

  • Settings Screen

  • Print Icon on Post

  • Post Before Printing (Theme - Themble Bones)

  • Post After Printing with Plugin

Installation

Plugin Directory

  1. Search the plugin directory for plugin.
  2. Click ‘Install Now’.
  3. Activer l’extension.
  4. ‘Print’ should be added to the side menu in the admin area, along with the default settings.
  5. Modify or keep default settings.

Upload

  1. Download the plugin Zip file.
  2. Go to plugins in the WordPress Admin area.
  3. Select ‘Upload Plugin’
  4. Activer l’extension.
  5. ‘Print’ should be added to the side menu in the admin area, along with the default settings.
  6. Modify or keep default settings.

FAQ

How do I Print Pages?

Add the shortcode [printicon align= »left »] for a left align print icon or [printicon align= »right »] for a right aligned print icon. The plugin has to be be active in the settings menu for this to work.

Can I Disable the Plugin on Individual Posts?

Yes – In the post editor there will be an option added to the bottom right which can be selected to disable the icon on that particular post.

Avis

Nice easy to use plugin

I needed to print posts and not the entire browser. Installed and worked right away.

I modified the plugin to remove the title of the post since I use the content in the post to provide the title.

Nice plugin overall

Super easy to use and WORKS!

After trying a few print page plugins, and wanting only to find something that just PRINTED a simple page, I found this one. Works with no frills, which is really what you want when simply printing a web page. Good job!

Didn’t work for me

Uninstalled. No reply to a support message (posted 6 months ago!). On my site it printed the right post/page title, but pulled in the body text from another post.
It’s a great idea for a plugin — nice to add to all posts without having to edit the theme files. Seems to work for some people.

Lire les 8 avis

Contributeurs & développeurs

« Print Post and Page » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

Traduisez « Print Post and Page » dans votre langue.

Le développement vous intéresse ?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Journal

Version 1.6

  • Added support for custom post types

Version 1.5

  • Changed the way article content is set for printing. It used to use a hidden element, now it makes use of session storage
  • Print functionality improvements and additional sanitization functions added

Version 1.3

  • Fixed Issue of CSS not printing

Version 0.1

  • Beta Release of Plugin