Skip to content

Instantly share code, notes, and snippets.

View yuwuwei's full-sized avatar

yu-wuwei yuwuwei

View GitHub Profile
@yuwuwei
yuwuwei / Shopify Announcement Bar - ABLS Article
Created November 1, 2021 07:55 — forked from tjmapes/Shopify Announcement Bar - ABLS Article
This is code for an announcement bar theme section for Shopify
{% 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 }};}