Add custom CSS class to product images

If it’s still relevant, you can add a class to the product thumbnail the following way. function loop_product_custom_thumbnail() { echo the_post_thumbnail(‘thumbnail’, array(‘class’ => ‘your-class-name’)); } remove_action( ‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10); add_action( ‘woocommerce_before_shop_loop_item_title’, ‘loop_product_custom_thumbnail’, 10 );

In WooCommerce product archive, how can you also set the quantity to be added to cart by typing, instead of just by using +/-?

If using this plugin instead of the theme functionality, and in the same time except jquery from minification and grouping, it works: Quantity Field on Shop Page for WooCommerce https://wordpress.org/plugins/quantity-field-on-shop-page-for-woocommerce/ It seems that jQuery has to be excepted from minification and grouping because otherwise the code starting with this gives an error: <script type=”text/javascript”>jQuery(‘.products .post-10 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)