How can I change the button color in a specific section?

How do I change the button colour for the below section?

Thanks :slightly_smiling_face:

1 Like

Hi @houssamalissa
Add the following rule to the bottom of theme.css

.background-media-text__text.larger-text .btn{
  background-color: #07ba4c !important;
  
}
.background-media-text__text.larger-text .btn:hover{
  background-color: #f56942 !important;
}

For testing purposes, the button color is set to green, but when you hover it turns red. You can change colors to your personal preference.

@houssamalissa

can you please try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
    this code apply for after 5 - 6 second
#shopify-section-16286804589d3b02f0 .btn {
    background: #008000; /* change color value as you like */
}

Hi Ketan,

The code works but it causes the arrow (which appears on hover) to disappear. Can you explain why?