Hi I am trying to change all the buttons on my website to a gradient. I need the button to be the following gradient
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!
https://indian-gaming-league-official-merchandise.myshopify.com/
password : iglsnk7
Thank you for the information.
Try this.
- 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” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
- 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??
Just follow this instruction.
- 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” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
- And Save.
Hi thank you so much it worked. However, the button in the Image With Text section didnt change colour. any solution?
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
Welcome,
all buttons havent changed.. is there a a way to make sure all buttons have been changed