Your issue is the dynamic sidebar being called is not matching the ID of what is registered.
Matching:
<?php if ( is_active_sidebar( 'sidebar-widgets' ) ) : ?>
<div id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-widgets' ); ?>
</div><!-- #secondary -->
<?php endif; ?>
Register Sidebar
if (function_exists('register_sidebar')) {
register_sidebar(array(
'name' => 'Sidebar Widgets',
'id' => 'sidebar-widgets',
'description' => 'These are widgets for the sidebar.',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
}
<?php get_sidebar(); ?> tells your template to use the sidebar.php file.
Related Posts:
- Widgets not working in Customizr but working in Appearance
- Get the sidebar ID in which the current widget was dropped
- How to exclude certain widget from showing up on home/front page? [duplicate]
- register_sidebar ‘after_widget’ on custom-built widgets not implementing, caused nested widgets
- Count widgets of a certain type
- Choose sidebars column in widgets.php page [closed]
- How to append custom text to the output of ‘categories widget’?
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- Update widget form after drag-and-drop (WP save bug)
- How do register_sidebar() and get_sidebar() work together?
- Limit widget to certain sidebar?
- Highlight custom widgets in the admin area?
- is_home() and is_single() Not Working as Expected with Custom Post Types?
- Widgets vs. Theme Mods
- How Can A Widget With Only One Instance Be Defined?
- Customise search form in the Widget
- How to translate month names in “Archives”
- Schedule cron event from widget
- How to Register and Display Widget for Custom taxonomy
- Add ‘Right Now’ widget to custom dashboard
- I need some direction on how to have a sidebar based on meta rather than page
- Widget Javascript code (ajax)
- Custom widget select options needs to stay selected after save
- Custom Widget form function common elements
- Updating Widget options in custom install.php
- Change HTML structure for custom menu in sidebar
- Modify a theme to insert custom widgets?
- How did I enable atom feeds in a fresh WP3 install?
- How to update preview when custom setting changed in my custom widget
- Child Theme – how to add new widget on a specific place?
- Function to remove archive sidebar for custom taxonomy?
- Warning: Creating default object… when altering Customize panels
- Adding custom field in all widgets, but at the top of the form, in admin area
- How do I change the markup only of a built-in widget?
- Is it possible to make widget return only data (eg, array)?
- Best practices regarding the creation of custom widgets?
- Allow a Widget to be used one time only?
- Search widget will search everything in the site, how to limit to only search gallery name
- Disable widgets in customizer for sidebar
- Unable to edit the “customize” section and the “widget” section is populating unknown code
- Can’t receive $args[ ] to my custom widget
- Organizing the position of widgetized areas in the backend
- how to convert Html block to dynamic widget?
- I’d like to move the Widgets Panel to the bottom of the list in Customizer
- Best practice for including plugin output in a template without using shortcode?
- Create small dashboard widget
- Widgets won’t save
- Customizing the Widget content markup
- Widget title markup in register_sidebar
- Sticky menu for WP custom menubars
- Add a specific css to a widget
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- Customise the Category Widget
- New checkbox in custom widget isn’t saving data
- What’s the right way to share data between widgets?
- Dynamic Sidebars based on page name
- Remove Sidebars from page
- Customize Widget Navigation
- Add custom border across footer widget area
- Customize section does not show my widget areas
- Widget recent comment filter by post meta_value
- How could I change contact details in the footer?
- Make Widget appear on Dashboard
- How to hide or remove a custom widget area when empty
- Execute function with jQuery if widget added or removed?
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- Custom Admin Section
- How to define active widget with js in a customizer
- Best strategy for providing theme options using customizer
- Confused about customising widgets
- Special characters showing in fallback font
- customize footer widgets area
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- Hover Hide-Visible Additional CSS not working in WordPress website, but shows properly in Customize window
- Add a custom field for sorting the products in a specific category WOOCOMMERCE – Second try
- Custom Post Type Data in Sidebar widgets?
- Looking for a lightweight theme using WP3 new tags and features (not 2010) [closed]
- How can I get posts in a subcategory to display on it’s parent categories archive page?
- Creating my own Admin Forms in a WordPress CMS?
- customize_register with Multiple controls/settings – how to get values?
- Best practices for A/B testing?
- simple wp_insert_post example
- Redirect members to custom page upon logging in through WP admin
- Adding classes to dynamic sidebar
- Integrating MailChimp newsletters as post
- WP_Query with the “offset” argument
- Adding “Interesting Tags” & “Ignored Tags” like StackOverflow.com in a WordPress Blog?
- Auto add taxonomy if post has category
- Add a containing DIV to core Gutenberg blocks
- WordPress widget new instance creates content duplicates
- WordPress widget/sidebar dividers?
- Can WordPress Read Its Own RSS Feed?
- Name/Word Replacement Plugin
- Get page ID outside the loop, matching menu ID
- Show widget differently depending on if it’s in the sidebar or footer
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- Author Tracking Code!
- help to change some colors (woocomerce and store locator) [closed]
- Show Featured Post Only On The Homepage
- order event posts by multiple custom fields