Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Woocommerce Shop Page – Product Tile Height

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #202524

    Hi,

    I have an ecommerce website running woocommerce (http://tuffhorserugs.com.au/shop).

    On the shop page, and also on the product widget, some products have names that fit onto a single line and some products’ titles spill over into the next line.

    Because of this, the ‘add to cart’ buttons aren’t vertically aligned.

    I wrote a javascript function that tries to line them up, and this sometimes works, but often times the script makes the product tiles twice their regular height (resizing the browser fixes this).

    Javascript code is here http://codepen.io/andrewmarkforbes/pen/WvxKLK

    Can anyone help me fix this code so it works properly on page load without resizing?

    Thanks,
    Andy

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.