Created
October 25, 2019 15:46
-
-
Save shopifypartners/2a5baf26520bc67b7bb11219e8534776 to your computer and use it in GitHub Desktop.
How to Create a Customizable Announcement Bar Section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- if section.settings.link == blank -%} | |
<div class="announcement-bar"> | |
{%- else -%} | |
<a href="{{ section.settings.link }}" > | |
{%- endif -%} | |
<p class="announcement-bar__message">{{ section.settings.text | escape }}</p> | |
{%- if section.settings.link == blank -%} | |
</div> | |
{%- else -%} | |
</a> | |
{%- endif -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment