Hello,
ive created a custom liquid, a simple button. im trying to place it in the center but dont know how.
i just need to move it a bit to the left.
the store url is: padpal.co.il
thank you!
Hello,
ive created a custom liquid, a simple button. im trying to place it in the center but dont know how.
i just need to move it a bit to the left.
the store url is: padpal.co.il
thank you!
@OriHacohen on which page is this section?
here it is:
sorry
.product__info-container .button.button--primary {
margin-left: 20% !important;
margin-right: 20% !important;
}
@OriHacohen - in that custom code you have classes for button, can you please one more class like ‘custom_class’ to it? so we can set css for this particular button
Hi @OriHacohen
Could you modify the liquid code to the following?
[עצב-בעצמך](https://padpal.co.il/products/100-104k)
The result
If it’s helpful, please like and mark it as a solution, thank you ![]()
thank you for the help! i do have one question tho, im using this button for 5 different product, and so i need to insert a different url inside each button. but it seems to be the same in all product pages. i could make 5 different product templates but i prefer not to, maybe its possible to insert a dynamic field to each button somehow? and different url to each button?
Hi @OriHacohen
You can do that with metafields. Learn more about it here https://shopify.dev/docs/apps/build/custom-data
Have a nice day