Skip to content

Conditionals

Sometime is usefull to show/hide some elements according to certain conditions. While CMS conditions are all automatically converted, there are some conditions that Webflow doesn’t supports yet, and can instead be used with custom attributes.

Note that the elements are not visually hidden, they will not be present at all in your HTML!

Show If

You can let Ghost render an element only if a condition is met, by using the attribute:

Hide If

Hide an item when a condition is met, by using the attribute:

Logged In

To show/hide something when the user is logged in you can use respectively:

Has Subscriptions

To show/hide something when the user has subscriptions:

To show/hide something when the user is a paid member:

Has Access

To show/hide something when the user has access to the current showed resource