A space to discuss online store customization, theme development, and Liquid templating.
Hello! I would need some help inserting a buy now button that has the function of sending customers to an external link. I can't get one of these into my blog post, help me please 🙂
Hey @DTagesson your question is not clear to me
do you want to add a call to action button on your blogs to direct visitors to buy ?
Sure I think I will build an app for merchants to add buttons anywhere that are fully customizable with links
Bro here's how to add a button to your blog
Navigate to Your Blog Post Editor:
Switch to HTML Mode:
Insert the Button Code
Copy and paste the following HTML code where you want the "Buy Now" button to appear:
<a href="YOUR_EXTERNAL_LINK" class="buy-now-button" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-align: center; text-decoration: none; border-radius: 5px;">Buy Now</a>
Bro make sure to replace YOUR_EXTERNAL_LINK with the URL of the product page you want to link to
and you can customize the button’s appearance by modifying the inline CSS in the style attribute if you want something custom feel free to dm me
Save Your Changes:
Hi @DTagesson,
Thanks for reaching out! I recommend checking out the Buy Button sales channel by Shopify. This channel allows you to generate the necessary code to embed "Buy Buttons" wherever HTML can be added. It's a straightforward solution that can help you integrate Shopify's purchasing capabilities into your existing site or blog seamlessly.
You can find more details and get started in our help documentation on Buy Buttons.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog