How To Prevent The Visitors From Printing Web Pages in Shopify

Sell Online With Shopify
Trusted by millions of businesses worldwide
Start your Shopify 14-day free trial + pay only $1 for your first month.

Do you want to prevent visitors from printing website content on your Shopify store? It’s easy. This article will guide you how to do that.

  • From your Shopify admin, to to Online Store > Theme.
  • Find the theme you want to edit and then click Action > Edit code.
  • n the Layouts directory, click themes.liquid to open it in the online code editor.
  • In the online code editor, add the below code before close </body> tag.
  • Click Save and you are done.

As soon as you install the script provided above, the visitors will can’t open the print option by shortcut key (Ctrl+P). If they still try the open print option from the properties menu and try print, they only get a blank page.

I hope it’s helpful to you.

Happy coding.

You may also like...

1 Response

  1. Oscar says:

    Thanks for this but I need also a code to prevent people from doing a print screen from any device by using hot keys or an app.

Leave a Reply

Your email address will not be published.

Sign up for a free Shopify 14-day trial and start selling today.

X