How can I code a CTA button without affecting the drop down menu color?

Hi - I have a call to action button on my header together with a separate drop down menu. I’ve amended the CTA to be red with white text.

However, the code I have used has also turned the first item on the separate drop down menu red.

is there a way to ensure that the drop down menu isn’t changed by the coding of the CTA button?

hope that’s clear

many thanks

Hi @Simione1976 ,

Please share your store URL and if your store is password protected then please provide password too.
You can take a picture of the place you want to edit.

So that we can help you.

Hi many thanks for your response - greatly appreciated. Forgot to say only an issue on desktop not a problem on mobile.

http://papareti-store.myshopify.com

PW: theeme

I’ve also noticed that the “shop Now” button on the header on the collections page has black text. Do you know why this would be? I would like it white like the rest of the site.

Any help appreciated thank you

@Simione1976

thanks for all details can you try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/base.css ->paste below code at the bottom of the file.
.header__inline-menu .list-menu li .header__submenu li:first-child {background: transparent !important;color: rgb(var(--color-link));}
.header__inline-menu .list-menu li .header__submenu li:first-child a {color: rgba(var(--color-foreground),.75) !important;}

Thanks so much - very much appreciated.

donyou know if there is a way I can turn the text to white on the “SHOP NOW” button on the header of the collections list page? It’s black at the minute and I can’t figure out why

thanks again - brilliant

@Simione1976

can you try this code may work not same but work same as home

.header__inline-menu .list-menu li:nth-child(1) a, .header__inline-menu .list-menu li:nth-child(1) a .header__active-menu-item {
    color: #fff! important;
    text-decoration: none;
}

Thanks so much. Really appreciate your help.

both solutions worked perfectly :folded_hands:

@Simione1976

its my pleasure to help

Best of luck your sale