HUSKY - Product Filter for WooCommerce

Comment insérer un filtre HUSKY au-dessus de la grille de produits WooCommerce

Dans le fichier functions.php du thème WordPress actuel, ajoutez le code suivant :

add_action('woocommerce_before_shop_loop', function () {
    if (!WOOF_REQUEST::isset('woof_before_shop_loop_done')) {
        echo do_shortcode('[woof_front_builder name="top filter"]');
    }
}, 2);

L'attribut ‘nom‘ peut avoir n'importe quel nom, mais doit être unique