WP5.9/WooCommerce defaulting to template-canvas.php
-
My sites with WooCommerce that use the default single-product.php are missing the header and footer because it is pulling the wp-includes/template-canvas.php even though I am not using a block theme.
I tried this
function action_remove_block_templates() { remove_theme_support('block-templates'); } add_action('after_setup_theme', 'action_remove_block_templates');
but it didn’t work. I also tried creating a single-product.php in the theme and that did not work either.
How can I force WordPress to not look for HTML template parts?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP5.9/WooCommerce defaulting to template-canvas.php’ is closed to new replies.