I’m wondering if I am doing this in the most efficient way. I’m taking an existing site and moving it into this theme. Some of the defaults aren’t working. For example, I already read on another post that you must re-create a page in order to allow it to have different sidebar status than the one it was originally created with (in another theme, long ago).
So, do I have to remake every single page and post? Also, when I remake a page, it seems there are sidebars full of standard widgets, but I can’t edit them out when I go to edit the page. They seem to be there by default as the php calls them up in either single.php or page.php. I don’t want to alter that, because I don’t have a child theme. Is there another way I can make those default sidebars never show up?
This is all in a development environment, but I may have a live site soon to show you some of the problems. Thanks!
1. You only need to re-create the page if the page used to have a set page template which no longer exists. If no page templates were set, then you won’t have any issue. If every page used to have a page template, then there’s some code I could provide which will automatically loop through every page and re-set the page templates back to default.
2. The widgets themselves should be in “Appearance > Widgets” – you should be able to remove them no problem. If you remove the default widgets, and add your own, you’ll be good. If you don’t want any widgets, set the page template to have no sidebars in “Appearance > Customize”.