Hi, I want an announcement-bar slider, the same as the one on the same https://www.missoma.com/ site, exactly the same movement when entering the site how can i do it PLS Help
2376
I’ve accepted you
Hi @itsmuhammad ,
Please send me the code of announcement-bar.liquid file, I will check it.
{%- for block in section.blocks -%}
{%- case block.type -%}
{%- when 'announcement' -%}
{%- if block.settings.text != blank -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{{ block.settings.text | escape }}
{%- if block.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{%- endif -%}
{%- endcase -%}
{%- endfor -%}
{% schema %}
{
"name": "t:sections.announcement-bar.name",
"max_blocks": 12,
"blocks": [
{
"type": "announcement",
"name": "t:sections.announcement-bar.blocks.announcement.name",
"settings": [
{
"type": "text",
"id": "text",
"default": "Welcome to our store",
"label": "t:sections.announcement-bar.blocks.announcement.settings.text.label"
},
{
"type": "select",
"id": "text_alignment",
"options": [
{
Hi @itsmuhammad ,
Please change code here:
Code:
{%- for block in section.blocks -%}
{%- case block.type -%}
{%- when 'announcement' -%}
{%- if block.settings.text != blank -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{{ block.settings.text | escape }}
{%- if block.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{%- endif -%}
{%- endcase -%}
{%- endfor -%}
{%- for block in section.blocks -%}
{%- case block.type -%}
{%- when 'announcement' -%}
{%- if block.settings.text != blank -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{{ block.settings.text | escape }}
{%- if block.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{%- endif -%}
{%- endcase -%}
{%- endfor -%}
Hope it helps!
its works but i have this problom (because I had two Announcement-Bars )
you can see ( https://skymoonusa.com/?_ab=0&_fd=0&_sc=1 )
Hi @itsmuhammad ,
Please send me the preview link, and I will check it for you. because the current link can only see the published theme.
this is the preview link, https://skymoonusa.com/?_ab=0&_fd=0&_sc=1
oh sorry (this is the preview link - https://hg37o2jtcrkex5hi-60246589572.shopifypreview.com )
Hi @itsmuhammad ,
Because the slider is added by CSS same as the demo you sent, so you need to enter more blocks, it will display fine, instead of just entering 1 you can duplicate it.
Hope it is clear to you.
yes it’s clear to me, thank you so so mach



