Hallo allemaal,
Ik heb mijn eigen thema gemaakt en er zit WooCommerce in.
Alles werkt gewoon behalve 1 ding:
De widgets van WooCommerce, alle widgets van WooCommerce werken niet.
Ik weet niet hoe ik het moet oplossen.
Dit is de code in mijn functions.php bestand:
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);
function my_theme_wrapper_start() {
echo '<section id="main">';
}
add_filter('woocommerce_default_catalog_orderby', 'woo_catalog_orderby');
function woo_catalog_orderby()
{
return 'price'; // Can also use title and date
}
function my_theme_wrapper_end() {
echo '</section>';
}
add_theme_support( 'woocommerce' );
Can anyone help me to fix this problem?