Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I have been trying to resize the "shop all" buttons on mobile but it's not working very well... how do I fix this?
This is not 2px...
Webshop: https://axiomunit.store
Solved! Go to the solution
This is an accepted solution.
Hello, when I looked at your shop I find out that there are two places giving your elements min-width attributes. You need to override or remove them to give your elements 2px width.
Also your buttons are redirecting wrong pages, when I clicked to "Shop Women" it redirected me to Men's page and vice-versa. You may want to fix that too.
This is an accepted solution.
Hello, when I looked at your shop I find out that there are two places giving your elements min-width attributes. You need to override or remove them to give your elements 2px width.
Also your buttons are redirecting wrong pages, when I clicked to "Shop Women" it redirected me to Men's page and vice-versa. You may want to fix that too.
I will check out the code.
Actually... my current clothes are unisex so they're in both men's and women's section
The products in redirected pages are identical then, if you are not planning to add other than unisex products redirecting with one "Show All" button might be a better option for UX.
I'm planning to add other products. I found the codes and removed one of the min-width and min-height, but I still can't resize the buttons properly. I found out, when you center buttons, they cannot lose their original min-width. Do you know how I can fix this?
Is this appropriate for you? If not, could you be more specific about how you want them to be looking
You have just aligned them to the left. I said when you center align them, you cannot make them smaller than their original min-width.
If you want to make buttons smaller you can remove padding from following element
to align buttons center you can add
display: flex;
Why would I add more CSS to other sections when I have two CSS sections for the buttons? Anyway I fixed it by myself last night
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025