How to override template-loader.php?
-
Hello. I would like to make changes to
archive-product.php
part where the product loop is called:woocommerce_product_loop_start(); if ( wc_get_loop_prop( 'total' ) ) { while ( have_posts() ) { the_post(); /** * Hook: woocommerce_shop_loop. * * @hooked WC_Structured_Data::generate_product_data() - 10 */ do_action( 'woocommerce_shop_loop' ); wc_get_template_part( 'content', 'product' ); } } woocommerce_product_loop_end();
But in Genesis Connect for WooCommerce, it was in
template-loader.php
and called inarchive-product.php
usinggenesiswooc_content_product()
function. Is there a way to override template-loader.php on child theme?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to override template-loader.php?’ is closed to new replies.