wordpress - Changes on archive-product.php doesn't work -
i'm trying customize standard woocommerce theme , far has worked well. copied template files /plugins/woocommerce/templates
/mytheme/woocommerce
, customized files.
but when i'm change in archive-product.php
nothing happens? tried customize in core files (/plugins/woocommerce/templates/archive-product.php
) doesn't work.
i want change class of h1
heading: <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
.
so looked all woocommerce template files, class page-title
occurs in 1 file (to prevent editing wrong file).
edit:
in detail, want customize theme used in path: http://example.com/product-category/mycategory
seems still issue in woocommerce. landing here, following solution working me of version 2.1.6.
apparently problem due function woocommerce_content() outputting wrong page archive content.
i used following around it:
replace woocommerce_content() in woocommerce.php with:
if ( is_singular( 'product' ) ) { woocommerce_content(); }else{ //for product archive. //product taxonomy, product search or /shop landing woocommerce_get_template( 'archive-product.php' ); }
credit: found solution here
Comments
Post a Comment