PHP function for horizontal Woocommerce thumbnails and badges


I am looking for a PHP-function which checks if the product thumbnail is a specific size (in this case horizontal layout). If so, it should display the Woocommerce-badges (New, Sale, Featured …) on a different height as the vertical thumbnails (with CSS). I don’t know exactly how to start and would appreciate any answers.
Here you can see what bugs me. I want the "NEW" badge to display for horizontal pictures also in left corner without changing the position for the vertical pictures.

J.D 6 months 2021-06-14T16:39:20-05:00 0 Answers 0 views 0

Leave an answer