Shopify themes, liquid, logos, and UX
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!
Solved! Go to the solution
This is an accepted solution.
Hi @OriHacohen
Could you modify the liquid code to the following?
<a href="https://padpal.co.il/products/100-104k" class="button button--primary" style="width: 60%;margin-right: 20%;">עצב-בעצמך</a>
The result
If it's helpful, please like and mark it as a solution, thank you 😘
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
@OriHacohen on which page is this section?
here is the code inside the custom liquid:
- Here is the solution for you @OriHacohen
- Please follow these steps:
- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
.product__info-container .button.button--primary {
margin-left: 20% !important;
margin-right: 20% !important;
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now@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
This is an accepted solution.
Hi @OriHacohen
Could you modify the liquid code to the following?
<a href="https://padpal.co.il/products/100-104k" class="button button--primary" style="width: 60%;margin-right: 20%;">עצב-בעצמך</a>
The result
If it's helpful, please like and mark it as a solution, thank you 😘
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
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
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024