Hi,
I’ve successfully added social icons to the announcement bar. They look really great on the desktop but are misaligned on mobile. How do I edit the code to have them aligned properly and optimized on all mobile devices? I have been trying to figure this out, but can’t seem to wrap my brain around it. Any assistance would be greatly appreciated. By the way, I’m using the Dawn theme.
Here is the code:
Goes in the announcement bar liquid file
-
{%- render ‘icon-twitter’ -%}
{{ ‘general.social.links.twitter’ | t }}
-
{%- render ‘icon-facebook’ -%}
{{ ‘general.social.links.facebook’ | t }}
-
{%- render ‘icon-pinterest’ -%}
{{ ‘general.social.links.pinterest’ | t }}
-
{%- render ‘icon-instagram’ -%}
{{ ‘general.social.links.instagram’ | t }}
-
{%- render ‘icon-tiktok’ -%}
{{ ‘general.social.links.tiktok’ | t }}
-
{%- render ‘icon-tumblr’ -%}
{{ ‘general.social.links.tumblr’ | t }}
-
{%- render ‘icon-snapchat’ -%}
{{ ‘general.social.links.snapchat’ | t }}
-
{%- render ‘icon-youtube’ -%}
{{ ‘general.social.links.youtube’ | t }}
-
{%- render ‘icon-vimeo’ -%}
{{ ‘general.social.links.vimeo’ | t }}
{%- if settings.social_twitter_link != blank -%}
{%- endif -%}
{%- if settings.social_facebook_link != blank -%}
{%- endif -%}
{%- if settings.social_pinterest_link != blank -%}
{%- endif -%}
{%- if settings.social_instagram_link != blank -%}
{%- endif -%}
{%- if settings.social_tiktok_link != blank -%}
{%- endif -%}
{%- if settings.social_tumblr_link != blank -%}
{%- endif -%}
{%- if settings.social_snapchat_link != blank -%}
{%- endif -%}
{%- if settings.social_youtube_link != blank -%}
{%- endif -%}
{%- if settings.social_vimeo_link != blank -%}
{%- endif -%}
Goes in base.css file
.announcement-bar.color-accent-1.gradient {
display: flex !important;
justify-content: space-between !important;
}
This code reduces the height of the announcement bar
ul.footer__list-social.list-unstyled.list-social {
float: right;
width: 82%;
}
.announcement-bar.color-accent-1.gradient {
display: flex;
}