How to center align my social media icons in the announcement bar? (Dawn)

Solved

How to center align my social media icons in the announcement bar? (Dawn)

EdgelordShop
New Member
4 0 2

Hi all,

 

I'm using the Dawn theme, and have enabled social media links in the announcement bar section of my header block. I'd like them to be centered as I don't plan on having any actual announcements in that space.

 

I haven't touched the code with specific regards to this. I've attached a screenshot showing the current location of the icons, and where I'd like them to be within the black bar.

 

My shop is live, the url is Edgelord.shop.

 

Thank you in advance for any help you can give.

Untitled.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10036 2385 3012

This is an accepted solution.

Hi @EdgelordShop 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media screen and (min-width: 990px) {
    .utility-bar__grid--2-col {
        display:flex !important;
}
.utility-bar__grid .list-social {
    justify-content: center;
    width: 100%;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1741711374626.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 4 (4)

suyash1
Shopify Partner
10689 1317 1696

@EdgelordShop 

please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css
 

 

@media screen and (min-width: 990px) {
.utility-bar__grid {display: flex !important; justify-content: center !important;}
}

 

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
EdgelordShop
New Member
4 0 2

Thank you so much!

Made4uo-Ribe
Shopify Partner
10036 2385 3012

This is an accepted solution.

Hi @EdgelordShop 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media screen and (min-width: 990px) {
    .utility-bar__grid--2-col {
        display:flex !important;
}
.utility-bar__grid .list-social {
    justify-content: center;
    width: 100%;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1741711374626.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
EdgelordShop
New Member
4 0 2

Perfect, thank you!