Build Your Course The Easy Way
Get Started Free

site

The liquid object `site` returns information about a Kajabi Site. In your themes, you can access the current site as `current_site`.

In this article:


The site object has the following attributes:

    site.id

    Returns the id of the site.

    My Site ID = {{ current_site.id }}

    site.title

    Returns the title of the site.

    The title of my site is {{ current_site.title }}.

    site.products

    Returns an array of all the products in the site.

    {% for product in current_site.products %} <a href="{{ product.url }}">{{ product.title }}</a> {% endfor %}

    site.url

    Returns the public url for the site.

    <a href="{{ current_site.url }}">Home</a>

    site.login_url

    Returns the login url for the site.

    <a href="{{ current_site.login_url }}">Login</a>

    site.logout_url

    Returns the logout url for the user.

    <a href="{{ current_site.logout_url }}">Logout</a>

    site.library_url

    <a href="{{ current_site.library_url }}">Library</a>

    Coming soon...

    site.googleanalyticsscript

    Returns the Site's Google Analytics script.

    {{ current_site.google_analytics_script }}

    site.blog

    Coming soon...

    Contact support or access our 24/7 Live Chat:

    Contact Support Live Chat

    Need Help? Live Chat with Us.