Why is my 'Add to Cart' button not aligning correctly in liquid code?

1 0 0

Hi there!


I could use some guidance. I have tryed to add a "Add to cart" button in my liquid code. 

When i add the code the button is above the image and not allign. 




Anyone know a fix?


I have the code below:


on="/cart/add" method="post" id="product-form- {{ product.id }}">
<input type="hidden" name="id" value="{{ product.variants.first.id }}">
<button type="submit" name="add">Add to cart</button>


Skærmbillede 2024-02-27 102228.png

Reply 1 (1)

Shopify Partner
378 70 103

@AltTilSeasonen Seems like you have added the code in wrong place in the liquid file. To add it correctly it will require someone with knowledge of how to edit the code. Your best bet would be to hire a Shopify Partner/Expert if you'd like to discuss this more, don't hesitate to send me a PM.

Believes in delivering optimizing web solutions | Shopify Partner | Working as a web developer for last 8+ years.
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email me: info@nerdcurator.com