After declaring woocommerce theme support products are no longer displayed
Question
The title basically says it all. I’m piecing through publishing my first theme and have copied the woocommerce template files right from the plugin. So they should be identical with no current changes. However, when I add theme support in functions.php I no longer have products displayed. The declaration is basically right from their github:
function bad_billy_beards_add_woocommerce_support() {
add_theme_support( 'woocommerce', array(
'thumbnail_image_width' => 150,
'single_image_width' => 300,
'product_grid' => array(
'default_rows' => 3,
'min_rows' => 2,
'max_rows' => 8,
'default_columns' => 4,
'min_columns' => 2,
'max_columns' => 5,
),
) );
}
add_action( 'after_setup_theme', 'bad_billy_beards_add_woocommerce_support' );
Thank you.
0
2 years
2020-12-27T03:10:44-05:00
2020-12-27T03:10:44-05:00 0 Answers
6 views
0
Leave an answer