MPS_24 Posted October 14, 2023 Posted October 14, 2023 I've tried so many code options and it worked one time, but then stopped and I'm not sure how to get the right code to just print this page using the print button. Hoping someone might be able to help assist.
Vigasan Posted October 14, 2023 Posted October 14, 2023 (edited) Add a code block anywhere you want the button to appear, and add this inside. <button onClick="window.print()">Print</button> You can also add classes to the button if you want to style it like your Squarespace buttons. Edited October 14, 2023 by Vigasan tuanphan 1 If an answer I provide helps you, please mark it as the answer so others can easily access it as well. I'm a Squarespace Authorized Trainer, Squarespace Expert, and Circle Member and I've been helping my clients as well as those here in the forum and in various Squarespace groups with custom coding and support for Squarespace websites. I would love to help you in any way I can. Squarespace Plugins | Book Live Help | Squarespace Video Tutorials | Buy Me a Coffee
MPS_24 Posted October 14, 2023 Author Posted October 14, 2023 THANK YOU so much, that did give me a print button. I hate to ask, but do you mind sharing how I would add the classes to it to make it look and feel like my other buttons?
tuanphan Posted December 23, 2023 Posted December 23, 2023 On 10/15/2023 at 6:21 AM, MPS_24 said: THANK YOU so much, that did give me a print button. I hate to ask, but do you mind sharing how I would add the classes to it to make it look and feel like my other buttons? Add to Website Tools (under Not Linked) > Custom CSS button[onClick] { background-color: #f8e761 !important; color: black !important; padding: 20px 30px !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment