How can I center the text on my announcement bar and sold out buttons?

The text on the announcement bar text and sold out buttons aren’t centered. They sit too close to the top.

Please help me align them :slightly_smiling_face:

https://womenu.co/

1 Like

Hello @Nadine10

Its Artzen Technologies! We will be happy to help you today.

From where i cannot found please send me screen shot

Let me know if need further assistance
Regards,
Artzen Technologies

Hello @Nadine10

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

.card__badge.top {
    align-self: start !important;
}
.card__badge {
    justify-self: center !important;
}

Hi, thanks but this made the entire button centred, I just want the text centred

Screenshot 2023-09-12 at 13.55.55.png

Screenshot 2023-09-12 at 13.55.55.png

Hello @Nadine10

can you share the screenshot of this so that we can check and provide a solution to you?

Screenshot 2023-09-12 at 13.55.55.png

Hi @Nadine10

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • 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:
.badge {
     padding: 0.6rem 1.3rem 0.5rem !important;
}

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

Thank you so much, that worked for the badge.

Would you have a solution for the announcement bar at the top?

Screenshot 2023-09-12 at 13.55.55.png

Hello @Nadine10

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

.announcement-bar__message {
    padding: 2rem 0.1rem 1.7rem !important;
}
1 Like

Thanks so much!! Really appreciate it!

1 Like