• Resolved bogdang2288

    (@bogdang2288)


    For some reason, after the last Woocommerce update, the product categories are using the page.php template and the taxonomy-product_cat.php file from the theme folder is ignored. Can someone explain why this happens and why it works correctly in the Storefront theme? On Woocommerce 2.6 it works correctly. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have been going crazy over this too. Could not find any good solution too. Have the latest update and shop category pages just ignore everything. WordPress returns the the post type just a “page”. That is not a page.

    I resolved the issue. All you need to do is add theme support for woocommerce to start using dedicated templates.

    //Adding theme support 
    function mytheme_add_woocommerce_support() {
    	add_theme_support( 'woocommerce' );
    }
    add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );

    After adding the code, the used templated went from “page.php” to “taxonomy-product_cat.php”

    Thread Starter bogdang2288

    (@bogdang2288)

    Thank you GhostPengy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong theme template for product categories in custom theme’ is closed to new replies.