Adding a new widget area to a specific section of the page


#1

I’m working on a client’s site and I’ve run into an issue. We need to add some widgets just above the page content, but I’m at a loss as to how to do it. I’ve looked into it, but the Wordpress documentation on this and I’m not sure how to that that and apply it here. I’ve also looked at the Artbee’s documentation for this and I don’t see how I can get it to appear where I need it.

Specifically, I’m trying to put this at the top of a page that shows products under the title of the page. I’ve looked at several places for a file that looks like the one I need to edit. Any help if figuring out what to do is greatly appreciated.


#2

Hello,

You can create custom sidebar https://themes.artbees.net/docs/adding-custom-sidebar and add widgets in there. Then you can display this sidebar on the page using Widgetised Sidebar element https://themes.artbees.net/docs/widgetized-sidebar-shortcode/ .

Best regards,
Artbees Support.


#3

That would only appear on the page, right? We need it to appear on all of the product listing pages.


#4

Hello,

In this case you’ll need to edit the file jupiter/woocommerce/archive-product.php and paste Widgetised Sidebar shortcode there.
Make the changes in the child theme (copy the file with the same directory structure to the child theme: jupiter-child/woocommerce/archive-product.php)

Best regards,
Artbees Support.


#5

Hey, just a heads up for anyone who’s having similar issues, You’ll need to copy to the jupiter/woocommerce/archive-product.php file to jupiter-child/woocommerce/templates/archive-product.php. From there, follow the Wordpress tutorial on adding widget areas. Be sure to register the new widget area in the jupiter-child/functions.php file.

Adding widget areas to themes