Shopify themes, liquid, logos, and UX
Hi there,
I'm trying to add a show/hide feature on the collection page similar to this but we need to include variation options:
https://shop.thenewtinsomerset.com/uk/pl/182/categories/farm-shop/staples/grains-rice-pasta
I am using Prestige theme (not 2.0 as we had alot of customisations prior to this launching).
Does anyone know of any apps that use this functionality?
Hi @Gii ,
Step 1: Go to Admin -> Select the live Theme you are using -> Select Edit code
Step 2: Add the following code to the theme.liquid file and in front of the </head> tag (as shown in the image below)
x-add-to-cart-button.x-add-to-cart-button { display: none; } .action.ng-star-inserted { display: none; } @media (min-width: 992px) and (hover: hover) and (pointer: fine) { .shop .x-product-list-item { padding-bottom: 0px; transition: none; } .shop .x-product-list-item.adding-to-cart,.shop .x-product-list-item:hover { padding-bottom: unset; } }
Result: Add to cart and Option variant button hidden
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
The website example I sent was purely for functionality reference. We want to use the feature on a different website.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024