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:

  1. 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.)

  2. Find {% layout none %} in this file.

  3. Replace it with the following:

    {% include "locksmith-variables" %}
    {% if locksmith_access_denied and locksmith_manual_lock != true %}
       {% layout "theme" %}
    {% else %}
      {% layout none %}
    {% endif %}
  4. 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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us