Skip to content

Instantly share code, notes, and snippets.

Avatar

yu-wuwei yuwuwei

View GitHub Profile
@yuwuwei
yuwuwei / Shopify Announcement Bar - ABLS Article
Created Nov 1, 2021 — forked from tjmapes/Shopify Announcement Bar - ABLS Article
This is code for an announcement bar theme section for Shopify
View Shopify Announcement Bar - ABLS Article
{% if section.settings.announcement_visibility %}
<style>
.announcement {
font-size:{{ section.settings.announcement_text_size }}px;
background-color: {{ section.settings.announcement_bg_color }};
border-bottom: {{ section.settings.announcement_border_size}}px solid {{ section.settings.announcement_border_color }};
padding: {{ section.settings.announcement_padding}}px;
text-align: {{ section.settings.announcement_text_align }};
}
.announcement p {color: {{ section.settings.announcement_text_color }};}