Shopify themes, liquid, logos, and UX
Hi There
We would be grateful if someone could please help us with splitting our announcement bar into 3 sections, so that we can add a delivery info link, referral link, and another link.
We're using the Debut theme.
Thanks!
Best
Luke
Bump! we'd be grateful for some help on this. Thanks!
Bump! we'd be grateful for some help on this. Thanks!
If you are still looking for a solution to this:
I managed to do something of the kind on my Showcase theme by adding flex-containers to the header. Depending on your theme's setup, you will need to find header.liquid or announcement.liquid and add something of that kind:
<div class="flex-container" style="background-color: {{ settings.col_head_announcement_bar_bg }}">
<div class="flex-quarter cc-announcement desktop-only">
{% if section.settings.announcement_link != blank %}<a data-cc-animate-click href="{{ section.settings.announcement_link }}">{% endif %}
<div class="cc-announcement__inner">
{{ section.settings.announcement_text_left }}
</div>
{% if section.settings.announcement_link != blank %}</a>{% endif %}
</div>
<div class="flex-half cc-announcement ">
{% if section.settings.announcement_link != blank %}<a data-cc-animate-click href="{{ section.settings.announcement_link }}">{% endif %}
<div class="cc-announcement__inner">
{{ section.settings.announcement_text_center }}
</div>
{% if section.settings.announcement_link != blank %}</a>{% endif %}
</div>
<div class="flex-quarter cc-announcement desktop-only">
{% if section.settings.announcement_link != blank %}<a data-cc-animate-click href="{{ section.settings.announcement_link }}">{% endif %}
<div class="cc-announcement__inner">
{{ section.settings.announcement_text_right }}
</div>
{% if section.settings.announcement_link != blank %}</a>{% endif %}
</div>
</div>
And add some custom CSS to your styles.css.liquid:
.flex-container{
display: flex;
flex: 0 0 100%;
}
.flex-columns{
padding: 0px;
}
.flex-half{
flex: 50%;
margin: auto;
}
.flex-quarter{
flex: 25%;
margin: auto;
}
.desktop-only {
display: block;
}
@media (max-width: 767px) {
.desktop-only {
display: none !important;
}
}
We were looking for something similar. Did this work?
Similar do the pic attached is what we are looking for:
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024