Skip to content

Commit

Permalink
[AnnouncementBar] Fixing an issue with block attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandcote committed Oct 9, 2024
1 parent 285a3fb commit 7e99e10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sections/announcement-bar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

<div
class="utility-bar color-{{ section.settings.color_scheme }} gradient{% if section.settings.show_line_separator and section.blocks.size > 0 %} utility-bar--bottom-border{% elsif section.settings.show_line_separator and section.settings.show_social and social_icons%} utility-bar--bottom-border-social-only{% endif %}{% if section.settings.enable_country_selector or section.settings.enable_language_selector %} header-localization{% endif %}"
{{ block.shopify_attributes }}
>
<div class="page-width utility-bar__grid{% if announcement_bar and language_country_selector or section.settings.show_social and social_icons %} utility-bar__grid--3-col{% elsif language_country_selector or section.settings.show_social and social_icons %} utility-bar__grid--2-col{% endif %}">
{%- if section.settings.show_social and social_icons -%}
Expand All @@ -31,7 +30,7 @@
class="announcement-bar{% if section.settings.show_social %} announcement-bar--one-announcement{% endif %}"
role="region"
aria-label="{{ 'sections.header.announcement' | t }}"
{{ block.shopify_attributes }}
{{ section.blocks.first.shopify_attributes }}
>
{%- if section.blocks.first.settings.text != blank -%}
{%- if section.blocks.first.settings.link != blank -%}
Expand Down Expand Up @@ -92,7 +91,6 @@
class="announcement-bar__announcement"
role="region"
aria-label="{{ 'sections.header.announcement' | t }}"
{{ block.shopify_attributes }}
>
{%- if block.settings.text != blank -%}
{%- if block.settings.link != blank -%}
Expand Down

0 comments on commit 7e99e10

Please sign in to comment.