Disabling Photolock on Select Images

You can disable Photolock™ on certain images by adding "photolock-skipimage" class value to the image tag in your code.

You can use the platform's template language to check for a specific image in a file. For example, in Shopify, this language is called "liquid".

Use the template language to check for the image:

<img class="{% if product.handle contains 'book' %}photolock-skipimage{% endif %} product-image">

Replace the 'book' with the product handle value of the image you want to disable Photolock.

There will be a separate image tag file for each of your images. Then you will need to locate the image tag and add the class value below.

<img class="photolock-skipimage" />

Once class values are added, make sure the "Disabling Photolock on Select Images" feature is enabled. If so, all locks will be turned off on each image that has this class value.

After you add the necessary codes, do not forget the enable "Disabling Photolock on Select Images" feature in your Photolock dashboard.

Image

Was this article helpfull ?

Live Chat

Chat with support

Support Ticket

Submit a ticket