Add to cart button below image – products thumbnail grid
-
Hello!
Working on a store page – the below image description for the products thumbnail grid –
takes a lot to put the "add to cart" button on the right side of the below-image. Please advice if there is a better way to get that done.Best!

/* store page title + button*/ /*description not 100%*/ .lay-products-thumbnails-grid .below-image .woocommerce-loop-product__title ,.lay-woocommerce-product-thumbnail-price{ width: 64%; float:left; } .lay-products-thumbnails-grid .product .woocommerce .add_to_cart_inline { float: right; color: #888; } .lay-products-thumbnails-grid .below-image .add_to_cart_inline { margin: 0px !important; float:right !important; text-align: right; color: #888; } .lay-products-thumbnails-grid .below-image #lay-woocommerce .button, .lay-content a.button.add_to_cart_button { padding: 0px !important; color: #888; } .lay-products-thumbnails-grid .below-image .ajax_add_to_cart{ margin: 0px !important; } #lay-woocommerce .button, #lay-woocommerce a.button, .lay-content a.button.add_to_cart_button { color: #888; opacity: 1; line-height: 0px !important; top:-20px } .lay-products-thumbnails-grid #lay-woocommerce .button, #lay-woocommerce a.button, .lay-content a.button.add_to_cart_button:hover { border-color: #000; border-bottom: 0px solid #000 !important; border-width: 0px; border-style: solid; background-color: transparent; } -
hey!
the next lay theme update will include a setting for this.
in customize -> woocommerce -> product thumbnails ->
-
your css is great, i think i would use display flex on the parent container of the text and button though, but the result is the same
-
your css is great, i think i would use display flex on the parent container of the text and button though, but the result is the same
@arminunruh
Perfect! Thanks!
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Our Web Development company: 100k.studio
Want to tip me? https://www.paypal.com/paypalme/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it