moving a button to the middle

Solved

moving a button to the middle

OriHacohen
Tourist
19 0 1

Hello,

 

ive created a custom liquid, a simple button. im trying to place it in the center but dont know how.

OriHacohen_0-1723033478143.png

i just need to move it a bit to the left.

the store url is: padpal.co.il

 

thank you!

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1482 423 483

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

BSSCommerceB2B_0-1723039449063.png

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

View solution in original post

Replies 8 (8)

suyash1
Shopify Partner
9792 1214 1554

@OriHacohen  on which page is this section?

To build shopify pages use pagefly | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30. | Support me
OriHacohen
Tourist
19 0 1

here is the code inside the custom liquid:

 

OriHacohen_0-1723035912874.png

 

BSS-TekLabs
Shopify Partner
2136 633 735

- Here is the solution for you @OriHacohen 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- 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:

BSSTekLabs_0-1723037593559.png

 

 

- 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

suyash1
Shopify Partner
9792 1214 1554

@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

To build shopify pages use pagefly | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30. | Support me

BSSCommerce-B2B
Shopify Partner
1482 423 483

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

BSSCommerceB2B_0-1723039449063.png

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
Tourist
19 0 1

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?

BSSCommerce-B2B
Shopify Partner
1482 423 483

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