capitalize text in announcement bar, dawn theme

Solved

capitalize text in announcement bar, dawn theme

marjolein94
Tourist
4 0 1

Hi! 

 

Can someone help me capitalize text in the announcement bar in Dawn Theme?

Accepted Solution (1)
exertweb
Tourist
24 7 3

This is an accepted solution.

@marjolein94 

Please try below code.

<style>
.announcement-bar__message {
    text-transform: uppercase;
}
</style>

exertweb_0-1727622571091.png

 

View solution in original post

Replies 7 (7)

exertweb
Tourist
24 7 3

Hello @marjolein94 

Please follow below steps:

  • Go to the Theme Editor:

    • In your Shopify admin, go to Online Store > Themes.
    • Click Actions > Edit Code next to your active theme.
  • Find the theme.liquid File:

    • In the code editor, look under the Layout folder.
    • Open the theme.liquid file.
  • Insert the Code Before the Closing </head> Tag:

    • Scroll down until you find the closing </head> tag.

 

 

 

 

<style>
.announcement-bar__message {
    text-transform: capitalize;
}
</style>

 

 

 

marjolein94
Tourist
4 0 1

This didn't work 😞

exertweb
Tourist
24 7 3

@marjolein94 Can you share your store URL?

 

marjolein94
Tourist
4 0 1
exertweb
Tourist
24 7 3

This is an accepted solution.

@marjolein94 

Please try below code.

<style>
.announcement-bar__message {
    text-transform: uppercase;
}
</style>

exertweb_0-1727622571091.png

 

marjolein94
Tourist
4 0 1

This worked! thanks 🙂

devcoders
Shopify Partner
273 43 65

Hello @marjolein94 

- Go to Online Store -> Theme -> Edit code.
- Find the file base.css and paste the code below at the bottom of the file.

.announcement-bar__message.h5 {
text-transform: capitalize;
}

 

devcoders_0-1727626049195.png

 



Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at [email protected].
If my assistance was helpful, please consider liking and accepting the solution. Thank you!