How to display an element by if condition liquid

@charliehenry

Hello,

Please use this

{%- if section.setting.tooltip_icon_one != blank -%}
<!-- Content to be displayed when the checkbox is checked -->
<p>
Content here, images, etc.
</p>

{%- endif -%}

Because this is not a theme setting its a section setting. so must add section. before the settings.

if our solution is helpful for you then please like the post and tap on accepted.

Thankyou

1 Like