Archived topic
Making a print button
4 replies · Started by Oliver on July 26, 2022
I would like people to be able to print the content area of each post by clicking a button. I found this answer from Tom Print, but I don´t know how to translate that into a button that prints the post content. Where should the button be directed to? or should it just have a class like this:
.print {
@media print {
.side-header,
.main-navigation,
.secondary-navigation,
.widget-area,
.footer-widgets {
display: none;
}
}
body {
font-family: Tahoma, Verdana, Arial, sans-serif;
}
}
Hi Oliver,
Making an actual button would require a button or a custom solution which is out of the scope of this support forum.
I just google "Print Button WordPress" and saw quite a few articles on it as it's not a theme-specific request.
Hope this helps to get you started :)
Hey Leo thanks for taking the time... I searched and did come across a nice tutorial. If anyone ever needs this and sees this post here is the link
Thanks again Leo and have a nice day!
Hello Oliver,
Thank you for providing the link about adding a print button to a WordPress page or post without a plugin.
Even though it is an article from 2013, it is really useful.
Best regards,
Marcel
No problem Oliver.
And thanks for sharing a working solution :)