I'm the administrator of my site and I cannot access pages because of Locksmith locks.

Locksmith locks your customer facing website so that it can only be accessed under certain circumstances. Some merchants set up more nuanced conditions and Locksmith can get in the way as you navigate your own website.

Note: Using this guide requires that customer accounts are enabled in your store, and that you have a customer account for your own store.

To let Locksmith know to let your customer account through, set up the following lock:

Click the "Start a Liquid lock" on the main page of Locksmith.

Next enter this into the "Liquid condition area":

customer.tags contains "admin"

That will look like this:

Press Create lock to continue. For your key, use the following..

Select "if (always permit)" from the list of key condition types.

It should end up saying "Permit...always", like so:

That's it, for your lock setup. Make sure to save the lock!

Create a "customer" account for your store:

Now, if you haven't already, create a customer account for your store, and go into your "Customers" area and add "admin" as a tag to your own customer account. You can now access any content in your store while signed in with this account.

Remember this is just a way to test what your customers are seeing, so this means you need to sign in with your customer account to gain access to locked content. If customer accounts are not enabled on your store, you won't be able to use this method.

Note: Locksmith won't lock down your website during theme edit mode, so you always have the option to view your store that way.

As always, feel free to contact us via email at team@uselocksmith.com if you have any questions.

Last updated