Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #1429524

    Hi guys,

    Google has not been able to find me an answer.

    I’d like to add a widget area on the blog/news page just above the loop.

    Any idea what hook I need to do this?

    For the Woocommerce page it is as below but I need to same positioning on the blog page.

    // Add Widget above products on all shop pages
    add_action( 'woocommerce_before_shop_loop', 'enfold_customization_shop_widget_area', 50 );
    function enfold_customization_shop_widget_area() {
        dynamic_sidebar( 'shopheader' );

    Any idea what I need?


    Hey Thomas,

    You can use the “ava_after_main_container” hook instead of the “woocommerce_before_shop_loop” for that.

    If you created your Blog page using ALB, the simpler way would be adding the Widget Area element to the top of your page and choosing your widget.

    Best regards,


    Hi Yigit,

    Thanks for this – This works but it is too high – It currently sits above the breadcrumbs.

    Is it possible to move it below?



    You could try using the ava_after_main_title or directly override the template files.

    Best regards,


    Thanks both…See private content link below.

    I have managed to do this using ava_after_main_container. It only needs to show on mobiles so I just used a media query to hide it.

    Once the sidebar hides it is actually in the right place so this worked out OK in the end.



    Great! Let us know if there is anything else we can help you with.

    Have a nice day.

    Best regards,

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.