Hello everyone, I was wondering if anyone could help me change the Add to cart buttons and buy it now buttons for dawn theme. In the dawn theme, the add to cart button like jumps, or like it is animated when you hover over and it just like bounces on its own. I was wondering how I could remove that feature.
Second thing is, I was able to make the Add to cart button all caps, but I can’t figure out a way to make the Buy it now button all caps, im pretty sure i need to edit the code, but not sure where. Would love if someone could help.
Last thing is, ive noticed a lot of people saying they dont want dynamic checkout buttons like apple pay or shop pay etc. instead they want just the standard Buy it now. Could someone help me with that in removing the dynamic pays? and making it just buy it now?
hi @ComfyHomeFinds ,
I am from Mageplaza - Shopify solution expert.
Here’s how you can address each of your concerns:
1. Remove the Bounce Animation on Hover for Add to Cart Button
The hover animation is controlled by CSS. To remove it:
-
Access Your Theme Code:
- Go to Online Store > Themes in your Shopify admin.
- Click Actions > Edit code for the Dawn theme.
-
Find the Relevant CSS:
- Open the Assets folder and look for a file like base.css or theme.css.
-
Modify the Button Animation:
- Search for .button:hover, .btn:hover, or similar classes controlling the hover effect.
- Look for properties like transform, scale, or animation.
- Remove or disable them.
- Example:
.button:hover {
transform: none !important;
animation: none !important;
}
-
.Save the File and Test:
- Save your changes and preview the store to ensure the bounce effect is removed.
2. Make the “Buy It Now” Button All Caps
To style the “Buy It Now” button text:
-
Locate the Button’s CSS:
- Open the Assets folder and find base.css or a similar CSS file.
-
Add the CSS for the “Buy It Now” Button:
- Find the class that targets the “Buy It Now” button. If you’re unsure, inspect the button in your browser developer tools to identify the class (e.g., .shopify-payment-button).
Example:
.shopify-payment-button {
text-transform: uppercase;
}
-
Save and Test:
- Save your changes and refresh the store to see the updates.
3. Remove Dynamic Checkout Buttons (Apple Pay, Shop Pay, etc.)
To remove dynamic checkout buttons:
-
Disable Dynamic Checkout Buttons:
- Go to Online Store > Themes > Customize.
- Navigate to the Product Pages or any section where the buttons appear.
- Look for settings related to Dynamic Checkout Buttons and disable them. These are often under Product Information or Buy Buttons.
-
Edit the Code to Force Standard “Buy It Now”:
- If there’s no toggle in the theme customizer:
- Go to Actions > Edit Code.
- Open the relevant Liquid files. For product pages, this could be product-template.liquid or main-product.liquid.
- Look for the code snippet for dynamic buttons, typically marked as:
{{ form | payment_button }}
-
Style the New Button:
- Use CSS to match your theme’s styling.