All Collections
Website
How To
Password-protecting pages on your Syngency website
Password-protecting pages on your Syngency website

This snippet of Liquid code will require a password be entered for visitors to access pages, model divisions or profiles.

Ryan Marshall avatar
Written by Ryan Marshall
Updated over a week ago

{% if password == 'bluesteel' %}

Private stuff here!

{% else %}
​     
{% form 'password' %}
<input type="password" name="password">
<button type="submit">Submit</button>
{% endform %}

{% endif %}

Did this answer your question?