June 29, 20215 yr Hello. I'm new to web design and am having a lot of trouble creating a working "print recipe" button on Wordpress. If you look at my attached picture, you'll see I have a button that says "Print Recipe". I've searched the web for hours but couldn't find anything about how I can set this button up to print my recipes. What I want to happen is that I click the button, it takes my recipe template (in this case it's "SOS Bacon"), and brings it up in a separate print tab. Any help on this would be greatly appreciated. I'm not a web designer by trade and know nothing about coding, I'm just making this website for a family member. I am aware that there are Print Button plugins on Wordpress, but they don't really do what I want them to. If it would help, you could go to www.plant-based-love.com/food and click on a recipe to better see what I'm asking about. Thanks.
July 2, 20215 yr <button onClick="window.print();">Print Recipe</button> If you want to modify the appearance of the print version, you'll need to add a print stylesheet. https://www.sitepoint.com/css-printer-friendly-pages/
Create an account or sign in to comment