Home Forums WoodMart support forum “In stock” alignment on product archive

“In stock” alignment on product archive

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #457576

    martindemko.com
    Participant

    Hi,

    we want to achieve alignment in one row of “In stock” on product archive page.

    We use setting :

    Product archive > Product styles > Layout > Even product grid for desktop (ON)
    Product title lines limit (Two line) *we have max 2 line product titles

    But element “In stock” is is immediately under the title. We want to have it aligned above the price – aligned in line with others

    Thanks

    #457711

    Artem Temos
    Keymaster

    Hello,

    Try to add the following code snippet to the Custom CSS area in Theme Settings to do this

    .products[class*="wd-stretch-cont"] .product-grid-item .wd-product-stock {
    	margin-top: auto;
    }
    
    .products[class*="wd-stretch-cont"] .product-grid-item :is(.price,.wrap-price,.product-rating-price) {
    	margin-top: 0px;
    }

    Kind Regards

    #457724

    martindemko.com
    Participant

    Hi,

    it works – but not as planned. “In Stock” is aligned on top of price – but the blank space is missing (so elements are not even). I tried to turn off option Even product grid, but it didnt help.

    Before code :

    After code :

    #457736

    Artem Temos
    Keymaster

    Hello,

    Please, send us your admin access so we can check why the code doesn’t work as expected.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)