Change button colour on Shopify Ride theme to a gradient

Hi I am trying to change all the buttons on my website to a gradient. I need the button to be the following gradient

1 Like

You’ll need to find the class used for your button and then add/update the code to in your css file.

i tried doing that but it didnt work

Add !important at the end and see if it works

background:rgb() !important;
background: linear-gradient() !important;

Hi @snk729 ,

Can I give a try? Would you mind to share your URL website? with password if its protected? Thanks!

i dont know where to add this can you help?

messaged you!

1 Like

https://indian-gaming-league-official-merchandise.myshopify.com/

password : iglsnk7

Thank you for the information.

Try this.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.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:
  4. And Save.
.rich-text__buttons.scroll-trigger.animate--slide-in a {
    background: linear-gradient(45deg, black, transparent);
}

Result:

I hope it help.

but this makes the button black! i need the button to be a gradient, these colours. like this button

Base on what you provide the graident color. I just copy it and the color result is like that.

.rich-text__buttons.scroll-trigger.animate--slide-in a {
    background: linear-gradient(116deg, rgba(0,215,255,1) 0%, rgba(29,193,255,1) 94%);
}

Result:

where did you add this code??

1 Like

Just follow this instruction.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.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:
  4. And Save.

Hi thank you so much it worked. However, the button in the Image With Text section didnt change colour. any solution?

1 Like

No, cause its inside the section.

Try this.

.image-with-text.image-with-text--no-overlap.page-width.isolate.collapse-corners.section-template--19509592097043__d170a9d3-9138-4613-b3cb-fb83a9b247ac-padding.scroll-trigger.animate--slide-in a {
    background: linear-gradient(116deg, rgba(0,215,255,1) 0%, rgba(29,193,255,1) 94%);
}

Result:

I hope it help.

thank you so much!! it worked

1 Like

Welcome, :blush:

its not

all buttons havent changed.. is there a a way to make sure all buttons have been changed