Shopify themes, liquid, logos, and UX
I am using DAWN theme and i wanna replace the link for the buttons available on the product page (any one)
here is my store link : https://b58128-e6.myshopify.com/products/diamond-earring?variant=47798300967203
as you can see the make an enquiry button is redirecting to checkout can anyone please help me out
Solved! Go to the solution
This is an accepted solution.
<a href="your_custom_url" class="button custom_url">Make An Enquiry </a>
{% style %}
.custom_url {
display: flex !important;
width: 100%;
margin: 0px !important;
}
.product__info-container .product-form {
margin: 0px !important;
}
{% endstyle %}
Hello @Yash234,
It's good practice to create a copy of your theme and work on that to preview the changes before applying, especially if you are editing the raw code. Alternatively, you can also use the Shopify theme editor’s versions to revert to previous versions, but it is not recommended if you are making multiple changes.
Now to your specific question on replacing Shopify's default 'Buy Now' button with a custom link. First, you will need to disable the “Buy Now” button from the customization settings of the product page, as shown in the screenshot below:
After disabling the checkbox, the Buy Now button will no longer appear in your store.
Now to add a custom link please follow the steps below:
Hope this helps!
Regards,
Abhishek from Swym
This is an accepted solution.
<a href="your_custom_url" class="button custom_url">Make An Enquiry </a>
{% style %}
.custom_url {
display: flex !important;
width: 100%;
margin: 0px !important;
}
.product__info-container .product-form {
margin: 0px !important;
}
{% endstyle %}
Thank you so much buddy!!! it worked...
Hi, I am attempting to use this. I keep getting a 404 error. I'm guessing you have to insert a custom url but I am wondering where in the code does it go and where can I get the url from? Thank in advance.
Ciao @Vinsinfo , e se invece volessi sostituire il collegamento per i pulsanti disponibili nella pagina del prodotto per una singola collezione da "aggiungi al carrello" ad "acquista su whats app"?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025