Im quite new in PHP and im strugle with my WooComerce shop. I'd like to return specific widget right at the top of product category page.

I add widget with this code:

<?php echo do_shortcode('[widget id="woof_widget-7"]'); ?>

and now im strugle with return it at the top of product category page.

I will be very grateful fro any kind of help,

Cheers,

1 Answers

0
Ganga On

Ok i found answer ;) I simply add

do_action( 'woocommerce_before_main_content' );
        echo do_shortcode('[widget id="woof_widget-7"]'); ?>