Site logo

Archived topic

I'd like to set the woocommerce archive page to have it's own widget. How

5 replies · Started by Josh on October 25, 2022

Viewing posts 1–6 of 6

What do I do to make this custom post type archive have it's own widget sections and sidebar content? I want it to show the woocommerce product categories (which is already a widget).

Hi Josh,

For the sidebar, you can use a Block Element - Sidebar. Reference: https://docs.generatepress.com/article/block-element-sidebar/

For the other section, what sort of widgets section are you referring to? Is it a Footer Widget section? If so, you can use a Block Element - Hook, then hook it to before_footer.

I should have said: own widget sections *in the* sidebar content. is there a way that I can have in my appearance/widgets a new widget area that would say "woocommerce archive" and then i can put content that I only want on that archive page to show up?

Oh. I see. You'll need a Block Element still.

Just use a Block Element - Hook. Hook it to after_right_sidebar_content or before_right_sidebar_content.

You can also replace right with left.

This should allow you to inject widgets specific only to the pages you prefer them appearing.

but how do I stop the regular sidebar from showing up?

To clarify, do you want a different sidebar for your WooCommerce Archive page? If so a Block Element – Sidebar is the way to go. This, by default removes the default sidebar with all the widgets it has, and replaces it with the ones you'll be adding in your Block Element.

This archived topic is closed to new replies.