users want to print articles they find interesting. By default, WordPress itself and most WordPress themes print the page as it is, with all graphics, colors, and text in their respective areas.
In this tutorial, we will show you how to add an option to print articles on WordPress.
But before, if you have never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog
Then back to why we are here.
When and why may you need to add an article printing option in WordPress?
Some WordPress themes provide a separate CSS stylesheet for printing. This style sheet is used when a user prints a page. Others WordPress themes, can't change theappearance of your website when a user plans to make an impression.
Learn by consulting this article How to present and share PDFs on WordPress?
Usually, this forces users to download images and other items that have nothing to do with the content. This makes reading sometimes difficult to follow.
You can test your theme WordPress to see if it is compatible with printing. By performing the combination "CTRL + P" (or by searching for the print button) your browser will display the print preview of your website.
Discover How to get an email address with your WordPress hosting
If the print preview is similar to what is displayed on your website, then your theme does not have a print option.
In this case, you can use an article printing option on your WordPress blog. It will not only make printing user-friendly, but it will also encourage users to make impressions.
See also How to add infinite scrolling to a WordPress blog
We will present to you a plugin that will help you add a printing option on WordPress.
Add an article print button using the "WP-Print" plugin
The first thing you need to do is to install and activate the plugin WP-Print.
For more details, check out our step by step guide on how to install a WordPress plugin.
After activation, you must visit the following page: " settings> Print To configure the plugin.
You can choose to display the link with the text, or just the icon, or just the text. You can choose two icons, but also change the text that appears with the icon.
See also When and how to install WordPress in a subdirectory
Under the print options, you will be asked to choose whether to print comments, links, images or videos. By default, the plugin does not print comments and videos. But you can change that.
At the bottom of each printed article, the plugin will add a copyright warning. By default, it displays the name of your website. You can change that and use what you want, and you can even use HTML tags.
Do not forget to save your changes.
Go further by discovering How to allow users to edit certain pages
The plugin will unfortunately not add a print button on your articles. You will have to do it manually. Depending on your theme, you will need to add the code in " single.php "," page.php "," archive.php "," content.php », Etc ...
Find the following line in your theme:
Below this line you need to add the following code where you want to display the print button:
That's it, you can now visit your website and you will be able to see the print link.
Sometimes you will have content that you do not want to print. Embed this content in the following shortcode: [donotprint] and [/ donotprint] as follows:
[Donotprint] This text will not be displayed When printing [/ donotprint]
Discover also some premium WordPress plugins
You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.
We offer you here some premium WordPress plugins that will help you do that.
1. PrivateContent
PrivateContent is a powerful yet easy-to-use solution for creating a true multi-level registration website.
It is a WordPress plugin compatible with the new European legislation on the protection of users' data. Like most plugins in this list, it comes with a whole host of full features that are only waiting for you to install it.
Protect your content with this WordPress plugin and let subscribers access it according to the role or status they have. Besides, it's one of the best-selling plugins in this niche, and one that deserves special attention from you.
Download | Demo | Web hosting
2. WP FSAM
WP FSAM is a WordPress plugin that allows you to create a file sharing manager. it offers administrators the possibility of uploading private and protected files and sharing them with certain users.
As features, it offers among others: the possibility of creating categories of files that can be assigned to private downloads, it allows you to easily upload files and share them with certain users, the possibility of creating users and allowing them download files in specified categories, and many more.
Download | Demo | Web hosting
3. Filetrip
Filetrip is a very powerful and unique WordPress plugin that helps you acquire and manage digital information (files, videos, music, documents and archives).
This WordPress plugin mainly integrates your website in the cloud and allows you to synchronize all digital files in the best storage services available on the internet, namely Dropbox and Google Drive.
From these services, you can send and distribute your media and digital content where you want it.
Download | Demo | Web hosting
Recommended Resources
Find out about other recommended resources to help you build and manage your website.
- How to add a zoom on WordPress images
- How to make columns on WordPress without plugins
- How to rename images on a WordPress blog
- How to fix connectivity error on WordPress
Conclusion
Here ! That's it for this tutorial. Hope you can manage to add a print button to your WordPress blog. Do not hesitate to share with your friends on your favorite social networks.
However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.
If you have suggestions or remarks, leave them in our section Comments.
...
Hello, great post, even if it's something old helped me. I have a question, do you know if with these plugins I can only print an image from the created button? I just want it to come out to print an image and I don't know how to do it. Thank you so much.
Hello,
The best way to find out is to test one of the WordPress plugins on this list. Regarding the post, we will update it in a week.
Hello and thank you for this handy tutorial.
Hello Jimmy,
Thank you for coming back.