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
- Multiple wp.editor in a custom widget using JQuery
- Custom product status get filtered on all product list views
- Highly stylized pages
- Twenty Twenty edit “Read more” text
- Some questions about best practices for custom code
- When developing WordPress plugin, is it a good idea to create my class object by hooking to existing class constructor?
- Static Page, need Last and Next links at the bottom
- Lightbox not showing image caption
- Polylang will not allow changing of language without translation
- WordPress core jquery version file not loaded?
- the temporary save folder is wrong
- I want to change url structure of my created archieve pages
- Can we add an extra button on woocommerce shop page and use it to send the product info including image in a mail?
- Simple Add To Cart Ajax Button
- Latest update broke my custom login CSS
- WordPress 5: including larger thumbnail image sizes in srcset than I have set
- How to prepend block content in getSaveElement filter?
- Customized Blog/Latest Posts Page
- remove screenshot.png via dashboard
- How can I create a Custom Page? (not a page template!!)
- Upload advanced custom field text link array with csv
- Can’t do a src to node modules folder
- Avoid showing the same phrase in the loops
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Woocommerce – Remove cart button depending product (post) status