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

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.

@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;}
}

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%;
}
}

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

Thank you so much!

Perfect, thank you!