Customize WooCommerce Templates AND Use Theme Layout

This snippet will allow the Single product layout to display in the same layout as your installed theme.

if ( is_singular( 'product' ) ) {
 woocommerce_content();
}else{
//For ANY product archive.
//Product taxonomy, product search or /shop landing
 woocommerce_get_template( 'archive-product.php' );
}

Copy templates from the plugin /templates folder into a /woocommerce folder to make custom edits to the WooCommerce loop, layout, etc.

Sourced here.

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.