How to add view all products button on products page

learningdesign
Shopify Partner
126 1 15

How to add view all products button on products page below related products 

<a href="My link" class=" button button--full-width button--primary">Bekijk alle producten</a>

 

i have added this code in custom liquid but now i dont know how to make the button center please can some one send me code ?

Replies 3 (3)

devmont-digital
Shopify Partner
102 23 24

Hi @learningdesign

We understand your concern regarding the button, and you mentioned that you are facing an issue with the button not being centered on the screen.

Here is the code and add them in custom liquid

 

a.button.button--full-width.button--primary {
  width: fit-content;
  margin: 0 auto;
}

 

Found our answer helpful? If so, Don't forget to show your support by liking and accepting the solution.
Looking for more help and expert consultation? Feel free to contact us at Shopify Expert or visit our website www.devmontdigital.io
Hire us for your project by simply emailing us at sales@devmontdigital.io
learningdesign
Shopify Partner
126 1 15

Capture.PNG

 

Where should i place your code please

devmont-digital
Shopify Partner
102 23 24

Hi @learningdesign 

You perfectly embedded the code, just need to add a style tag.
Check Screenshot below

tempsnip.jpg

Found our answer helpful? If so, Don't forget to show your support by liking and accepting the solution.
Looking for more help and expert consultation? Feel free to contact us at Shopify Expert or visit our website www.devmontdigital.io
Hire us for your project by simply emailing us at sales@devmontdigital.io