How can I change my header 'sale' text color to red?

Hello! I would like to change the text ‘sale’ in my header to red. I tried the codes suggested when other people asked the same question, but it doesn’t seem to work for me. I use the theme Refresh if that’s helpful. Thank you

Hi @mayanevy

Can you share with me the page URL?

Hello,

Yes the url is nevy.co.kr and the password is spicyburger

Thanks!!

Hi @mayanevy

You can try this code by following these steps:

Go to Online store => themes => actions => edit code and add this code on file theme.liquid before tag


Hope this answer helps.

Best regards,

Victor | PageFly

That worked!! Thank you so much.

Do you also know how I can add another announcement banner at the top of the page when I already added one below the header? To be super clear: I want one banner at the very top of the page, and one below the header (at the same place where I already have one). Thank you very much!!

Hello @mayanevy

It’s GemPages support team and glad to support you today.

You can follow these steps:

1/ Go to Online Store → Theme → Edit code

  1. Open your theme.liquid file, paste the below code before

I hope the above is useful to you.

Kind & Best regards,
GemPages Support Team

Hello! When I added that code it moved both announcements to the top. I want one on the top and one below the header.

You want it like this right?

help me add this code on filt theme.liquid


Hello again. That seems to work but is there a way so that when you refresh the page you don’t see it jump from the 1 st position to the correct one? It looks a little buggy :disappointed_face: thanks a lot

Please help me remove the old code and use this new code


When I change to that one, both announcement banners end up at the top of the page.

Please help me remove all previous code and use this code, if it doesn’t work please put the page back at the original position it will be more convenient for me to check


Hey, didn’t seem to work.

Removed the old codes.

Thank you, help me add this code on file theme.liquid


Hi! That seems to work but I can still see it moving from the upper position whenever I refresh the page.

I’m so sorry But I’m tried my best, this is the mechanism on browsers I can’t change it, I think you so should contact theme to them deep check more about this or you can use my code, I hope it can help you.


Your code seemed to work!! Thank you so much

Hello again,

Sorry for all the questions but after I changed the announcement it went back to its original place.. Any idea what I can do? Do I need to change the code every time I change the announcement?

oh I’m so sorry, I lost my notification so I can’t see your comment, on this issue when you change announcement the class of announcement also changes so my code can’t work I think you can Contact the theme so they can check directly in the theme and give you the best support.

Hello again! Similarly, how can I change the “New” to green?