Skip to content

Instantly share code, notes, and snippets.

@hardik29418
Last active July 28, 2023 05:38
Show Gist options
  • Save hardik29418/523e751dfd92c564968cb4d19700efbb to your computer and use it in GitHub Desktop.
Save hardik29418/523e751dfd92c564968cb4d19700efbb to your computer and use it in GitHub Desktop.
{%- if section.settings.show_announcement -%}
{%- if section.settings.home_page_only == false or template.name == 'index' -%}
<div class="announcement-bar-parent">
{%- if section.settings.announcement_link != blank -%}
<a href="{{ section.settings.announcement_link }}" >
{%- endif -%}
<p class="announcement-bar-message">{{ section.settings.announcement_text }}</p>
{%- if section.settings.announcement_link != blank -%}
</a>
{%- endif -%}
</div>
{%- endif -%}
{%- endif -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment