Archived topic
Unknown and unwanted meta widgets
9 replies · Started by Grant on March 28, 2023
Hello,
I just updated this page on my website with some WP-Show-Posts code. An unwanted search bar and archives widget showed up and I can't work out why they did.
I have checked the existing widgets for the side bar, footer etc. and there is nothing to be found. I also checked the custom CSS and cannot find anything.
Please could you take a look and let me know how to remove them?
Thank you,
Grant
Hi there,
do you want a left sidebar?
If you do, add your own widget to it, and the automatically displayed widgets will be replaced.
If you do not, then disable the sidebar in the Customizer > Layout > Sidebars.
Hi David,
Thanks for the quick reply. I don't want the sidebar and already had it disabled. See here
.
Weirdly, it is only on this page that it shows.
If you edit that page, check the Layout Meta box:
https://docs.generatepress.com/article/sidebar-layout/
To make sure it has not been set to show a sidebar
Thanks, David. It was set to show a left sidebar. I updated everything to "default" and then tried no "sidebars". But for some reason it keeps reverting back to showing the left side bar. Is there anything else I might try?
First, make sure the layout metabox in the page editor is set to default.
Then check if there's a layout element at appearance > elements.
If so, does the layout element set the page/pages to have a left sidebar?
Hi again,
It seems that the page was created with Sections. When I activated Sections, the layout issue / sidebar disappeared. Please could you explain why this happened?
As a follow-on question, is it possible to add a shortcode to Sections?
Thank you,
Grant
Hi Grant,
The sections module is a very very old legacy module, it's to create full-width layout.
If your site is created with sections, make sure the sections module is activated.
Or you can try rebuilding your site using the modern way: blocks!
Thanks, Ying. Somehow it is only this page that is built with sections. :-) Thanks for the help and info!
No problem :)