How can I change the color of a header item on both desktop and mobile?

Hi all,

We would like to make the “Outlet Sale” item in our header red, what code can we use to do this for both desktop and mobile?

Site is www.uncertn.com

Hi @UCJustin

Check this one.

  • 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:
#dropdown-715363b58a50283505792791d56d0723 > div > div > div > div:nth-child(1) > a:nth-child(2) > span {
    color: red !important;
}
@media only screen and (max-width: 749px){
#sliderule-4abd47f67d4fd29826b0614149a1a8ec > div.sliderow__links > div:nth-child(1) > div > a {
    color: red !important;
}
}

It will show on dekstop and mobile screen.

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