Change colour of 'Add to Cart button when hovering - Ride theme

Solved

Change colour of 'Add to Cart button when hovering - Ride theme

nickadl
Tourist
9 0 2

Hi,

 

How can I change the colour of my 'add to cart' and 'quick add' button when hovering over them? I would like this to be colour #0b1215.

 

My theme is RIDE.

 

Cheers, NickScreenshot 2024-07-28 at 10.34.04 PM.pngScreenshot 2024-07-28 at 10.34.17 PM.png

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2401 695 827

This is an accepted solution.

Hi @nickadl,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the base.css (or theme.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

 

 

button.button.quick-add__submit:hover,
button.button.product-form__submit:hover {
    background: #352f36;
}
/* This code updates the borders of the button */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .animate--hover-vertical-lift .quick-add__submit:not([disabled]):hover:after,
    .animate--hover-vertical-lift .product-form__submit:not([disabled]):hover:after {
        box-shadow: none;
    }
}

 

 

Here is the result

BSSTekLabs_0-1722172744849.png

BSSTekLabs_0-1722173710067.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 3 (3)

Asad-Mahmood
Navigator
300 51 55

What's your store url?

If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp





BSS-TekLabs
Shopify Partner
2401 695 827

This is an accepted solution.

Hi @nickadl,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the base.css (or theme.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

 

 

button.button.quick-add__submit:hover,
button.button.product-form__submit:hover {
    background: #352f36;
}
/* This code updates the borders of the button */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .animate--hover-vertical-lift .quick-add__submit:not([disabled]):hover:after,
    .animate--hover-vertical-lift .product-form__submit:not([disabled]):hover:after {
        box-shadow: none;
    }
}

 

 

Here is the result

BSSTekLabs_0-1722172744849.png

BSSTekLabs_0-1722173710067.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

niraj_patel
Shopify Partner
2378 514 508

Hello @nickadl 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
 .product-form__buttons button.product-form__submit:hover {
      background: #0b1215;
  }
  button.quick-add__submit:hover {
      background:#0b1215;
  }
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com