I can't lock my custom page template!
For deeply custom pages, it's not unusual for designers to turn off the theme layout completely - via {% layout none %}
- in favor of writing all of their HTML and CSS within the page template. This is a great way to keep full control of presentation within a single template.
However, Locksmith does need the layout mechanism in order to do its job.
To solve this problem, follow these steps:
-
Find the custom template being used for your page, and open up that template in the Shopify theme editor. (It'll often be called something like templates/page.custom.liquid.)
-
Find
{% layout none %}
in this file. -
Replace it with the following:
{% include "locksmith-variables" %} {% if locksmith_access_denied and locksmith_manual_lock != true %} {% layout "theme" %} {% else %} {% layout none %} {% endif %}
-
Save the file. You're done!
That's it! If you've got any questions, hit that contact button in the corner, and we'll be glad to help out. :D