• You have installed the Secure Zones Module

  • You have added a User Sign Up Form

  • A User has logged in

The current_user Object

When a User signs up or logs into your site, we store basic information about that user. You can use this to make the page respond uniquely to that user.

Outputting the following liquid on the page shows the full range of fields available:

{{context.current_user | json}}

You can traverse through the fields in the object and output them with dot notation. E.g. 


This will output the current user's first name, so you can say hello. 

You could also use an if statement to run logic using this. E.g. If I want to say hello to all users with a siteglide email address:

{% if contains "" %}
  <p>Hello Siteglider!</p>
{% endif %}

Did this answer your question?