LoadingTechland

  • Home
  • About Us
  • Contact Us
  • Privancy
  • Disclaimer

How to Add a Printer Friendly Option to Your WordPress Posts

by Unknown 22:08:00 wordpress



Often users want to print articles they find interesting. By default, WordPress itself and most WordPress themes would print your page as it is, with all the graphics, colors, and text in sidebars. In this article, we will show you how to add a printer friendly option to your WordPress posts.

Why and When You Need a Printer Friendly Option for WordPress Posts?

Some WordPress themes come with a separate CSS stylesheet for printing. This stylesheet is used when a user prints a page. Other WordPress themes, may not change your site’s appearance when a user prints it.
Usually this results into users printing all the images, sidebars, headers, menus, etc. Most of the time it is not very pleasant to read or look at.
You can see how your WordPress theme handles print by pressing CTRL+P when looking at a page from your site. Your browser will show print preview of your site.
If your theme shows your site as it appears in the browser, then it is not handling print any differently.
In that case, you can use a printer friendly option on your WordPress site. It will not only make your content printer friendly, it will also encourage users to print with an on-screen print icon.
We will be showing you two plugins that can add a print option to WordPress, and you can choose the one that best suits your need.

Method 1: Add Print Button in WordPress with Print Post and Page Plugin

This method is recommended for users who do not want to add code to their WordPress theme files.
First thing you need to do is install and activate the Print Post and Page plugin.
Upon activation the plugin will add a new menu item labeled ‘Print’ to your WordPress admin bar. Clicking on it will take you to the plugin’s settings page.
Here you can choose the print icon size and color, text to accompany the icon, and print alignment. Optionally, you can add custom CSS that you want to include into your print template.
Don’t forget to click on the ‘Save and Activate’ button to store your plugin settings.
You can now visit your WordPress site and you will see a print button on your single posts.
However, the plugin does not automatically adds print button to your WordPress pages. You will need to add [printicon align="left"] shortcode to your WordPress pages to display the print icon on pages.

Method 2: Adding Printer Friendly Option Using WP-Print

First thing you need to do is install and activate the WP-Print plugin.
Upon activation, you need to visit Settings » Print to configure plugin settings.
You can display print icon with text, just the icon, or just the text. You can choose between two icons, and you also change the text that appears with the icon.
Under print options, you will be asked if you want to print comments, links, images, or videos. By default, the plugin does not print comments and videos. You can change that if you want the plugin to print comments and videos as well.
At the bottom of each printed post, the plugin will add a disclaimer/copyright text. By default, it will show your site’s name. You can change that to anything you want, and you can also use HTML tags inside the disclaimer field.
Don’t forget to click on the save changes button to store your settings.
Now comes the tricky part. The plugin will not actually add the print button into your posts. You will have to manually edit your WordPress theme files to add the button.
Depending on your theme, you may need to add the code into single.php, page.php, archive.php, content.php, etc.
Locate the line in your theme template that looks like this:
1<?php while (have_posts()) : the_post(); ?>
Below this line, you need to add the following code where you want to display the print button:
1<?php if(function_exists('wp_print')) { print_link(); } ?>
That’s all, you can now visit your website and you will be able to see the print button.
Sometimes you may have content that you do not want to be included into the print version. Simply wrap that content between [donotprint] and [/donotprint]shortcode, like this:
1[donotprint]This text will not be displayed when printing[/donotprint]
READ MORE
SHARE :

Welcome

Welcome
  • Popular
  • Recent
  • Comments
    Best Android apps of the month 2015
    Must-Have Mobile Apps for Productivity
    Windows 10 mobile can run iOS, Android apps
    Must Have Android Apps: Health and Fitness
    Best Google Cardboard apps
    Top 250+ Proxy Sites List 2016: Best Free Proxy Websites
    Free Tools To Make Marketing Magic
    Highly Useful AngularJS Tools for Web Developers
    Apple Releases iOS 8.3 — Here Are Its Top Five Features
    Open Source Tools for the Internet of Things(IOT)

Labels

Android Best Antivirus Computer Tricks Developers Entertainment Entertainment comedy Google Android google photos Inspiration Interesting Make Money Online Movies proxy and vpn Windows wordpress

Total Pageviews

Translate

About Me

Unknown
View my complete profile

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Popular Posts

  • Best Google Cardboard apps
    Google Cardboard is a wicked toy and a brilliant gift idea, allowing you to turn any Android 4.1+  phone  into a virtual-reality headset fo...
  • Online Ecommerce(online shopping) Sites In India 2015
    With people becoming busy with their work and commitments, they are left out with only a little spare time. In addition, with wide availab...
  • Secure Your Wireless (Wi-Fi) Home Network
    With traditional wired networks, it is extremely difficult for someone to steal your bandwidth but the big problem with wireless signals i...
  • Amazing sites that you can use in your daily life
    1.  FollowUpThen . Have you ever lost a potential client because you forgot to follow up? Don’t make the same mistake twice by sendi...
  • Best Free Cloud Storage Service Providers 2015
    Cloud storage services are great for sharing files with friends and families, keeping documents in sync between all of your devices, and ...
  • top 10 sites for download free softwares 2015
    There are many other sites are available for software download, but I just tried to list down some very popular sites that I like most. I h...
  • Backdrops Android App Review
    There’s a wide variety of quality wallpaper apps on the Google Play Store, and there’s even no shortage of wallpaper apps that feature...
  • Must Have Android Apps: Health and Fitness
    Those Android apps for health and fitness can really by useful: If you don’t have your health, you don’t have anything. (And at the very le...
  • Top 250+ Proxy Sites List 2016: Best Free Proxy Websites
    Proxy sites hides the identity of client or remote users, however there is a  reverse proxy  as well that can hide the identity of the ...
  • Open Source Tools for the Internet of Things(IOT)
    If you've been involved with IT in any capacity in recent years, you've probably heard the term "Internet of Things," or...

Labels

Android Best Antivirus Computer Tricks Developers Entertainment Entertainment comedy Google Android google photos Inspiration Interesting Make Money Online Movies proxy and vpn Windows wordpress

Template Created By : ThemeXpose . All Rights Reserved.