The following snippet will move the WooCommerce product title above the featured image on the WooCommerce category pages. This snippet has been tested with the latest version of WooCommerce and numerous WordPress builds using the Divi Builder. Add the following code to your functions.php file and be sure to clear your cache to see the updated change.
add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_title_short_description', 5); function product_change_title_position(){ remove_action('woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title'); add_action('woocommerce_before_shop_loop_item_title','woocommerce_template_loop_product_title', 5); } add_action('init','product_change_title_position');
Leave a Reply