Jump to content

Looking to have a Print button to print the current page

Recommended Posts

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.

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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 by Vigasan

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 TrainerSquarespace 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 PluginsBook Live Help | Squarespace Video Tutorials | Buy Me a Coffee

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.