If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Just installed the theme today and trying to get my head around it and WP!
I noticed that the demo setup has widgets in the sidebar that appear to be set by default. Yet none of these widgets appear in the sidebar panels to the right of the Widget drag and drop area. They are all empty. Is there any reason for that?
Where are the default widgets set? I can’t find it anywhere.
in your sidebar.php file you can change
$default_sidebar = true; to
$default_sidebar = false;
I think you didn’t understand what I meant. I didn’t want to turn off the default content (which is the code that you posted). I wanted to know why the default widgets (eg “pages”, “categories”, “archive” – for a page) don’t appear in the sidebar construction boxes to the right of the drag and drop area in Dashboard/Appearance/Widgets/?
When you drag a widget to one of the boxes yourself, the default content changes to the content you drop into the box. But that default content is never visible in the boxes.
the “dummy” widgets are just hardcoded functions (they won’t appear as widgets in the sidebar widget areas and can’t be compared to “classic” widgets). The code can be found in includes/admin/register-widget-area.php
Ok, understood! It wasn’t a big deal, I just wondered why they weren’t showing up. Thanks!
Charles (or anyone!), I used your advice to turn OFF the sidebars, which is what I wanted to do. But it still shows an empty column. How can I get the pages where the sidebar used to be to stretch to full width like the other pages do?
The topic ‘DEFAULT WIDGET CONTENT’ is closed to new replies.