How To Prevent The Visitors From Printing Web Pages in Shopify

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy the first month of Shopify for $1.

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.

Looking for Shopify Experts?

Hura Apps can help you take your store to the next level

Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.

Get in touch

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. Required fields are marked *