Archived topic
Unable to remove widgets
21 replies · Started by Swadhin on November 26, 2021
The widgets being displayed are specific text widgets - the Theme isn't going to add them by itself. So some other plugin or function has to be interfering with this.
There were added by me previously (and manually) when I was using GP footers. Now, I've created a global footer with GenerateBlocks.
I am still at a loss here - what has the footer got to do with the sidebar ?
Hi David,
I had added these in the footer and then one day I made global footer using GB. I did not touch these or delete them but also never bothered to see them.
However, now after this scenario, they are appearing in the sidebar now.
However, having said that, David, instead of losing our time to this, I can ho ahead and remove the sidebar altogether from the tag pages. They are not that essential.
Is that good?
-Swadhin
Hi there,
I think this is what you were pertaining to:
https://github.com/tomusborne/generatepress/blob/adfe090929b0515cdf894f4c6b722cfe8c0790dc/inc/structure/sidebars.php#L52-L83
If it is, can you try adding this PHP snippet?
add_filter( 'generate_show_default_sidebar_widgets', '__return_false()' );
But yeah, if you're not planning on adding anything on the sidebar, it may be best to just disable it completely.
Thanks Elvin,
I'll go ahead and set this resolved. :)
Thanks for letting us know. No problem. :D