You’ve registered your sidebars with the ids of sidebar-left and sidebar-right but you are are attempting to display them using only left and right. You need to use the correct ids. That is:
dynamic_sidebar( 'sidebar-left' );
You need that id with both dynamic_sidebar() and is_active_sidebar()
if ( is_active_sidebar( 'sidebar-left' ) ) {
dynamic_sidebar( 'sidebar-left' );
} else { ?>
<p> here should be a left sidebar</p><?php
}
Related Posts:
- Why are my widgets not saving when being added to a sidebar?
- Changing $before_widget for certain widgets
- Display a specific dynamic sidebar widgets on a specific page
- adding multiple sidebars on pages
- Inject widgets from one sidebar into another with PHP
- Displaying a widget in sidebar only when no other widgets rendered?
- sidebar in 2020 theme as a widget
- Switching themes without losing widgets?
- can require “themefolder/includes/widgets.php” in “themefolder/functions.php” yet widgets.php doesn’t run
- Having different sidebar content for MANY pages?
- Moving WordPress.com theme and widget settings to self-hosted site?
- How to create a widgetized sidebar for every category dynamically?
- Duplicate and change a Theme Widget
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Current theme broken – after server and domain migration
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- WordPress ignoring specified template for front page. Why?
- Disable Sidebar in the Product Page in Storefront Theme [closed]
- Full width layout for custom post type pages
- Theme editor not showing correct index.php
- Problem after renaming wordpress template file
- Embedded Videos (PB) – Not Available
- Hide default “Recent Comments” Widget if there are no comments yet
- Widgets menu does not appear under “Appearance” in dashboard
- Calling widget via function in themes files (hard code)
- Creating new templates in child themes breaks layout
- OptimizePress Theme Overriding add_filter page_template
- How to conditionally display widgetized areas in theme customizer?
- How do I change the scan depth for page template files?
- Add more widget areas to a theme
- Style the archives/category sidebar widget via theme
- Custom page sidebar using Template dropdown box
- How to create my own sidebar in Twenty Eleven child theme?
- Get name of current page template in Gutenberg era
- Do not show one specific widget on one specific page
- Restrict access to specific widget field based on user role
- Is it possible to create child themes using the WordPress Dashboard?
- Selected template is not respected for home page in WordPress
- How can I manually activate my previous theme without browser access to dashboard?
- Change avatar on themed profile page
- Adding Sidebars in WordPress Theme
- How can I hard code my sidebar?
- Modifying the markup in the Tag Cloud widget?
- How to override / customize existing Widgets?
- Interpretation and explanation of register sidebar
- Adding an extra sidebar to your theme
- How to use custom page templates in a theme that hides page template option?
- Using filter in the widget causes fatal error
- Setting a new default template for the creation of a page
- disable default widgets in Responsive theme
- What happened to my Inactive Widgets?
- remove theme’s name from dashboard .. How?
- In a specific blog, the K2 theme does not have a Text Widget
- Why does an ad page open when I browse my websites’s wp-admin page?
- How do I use the default style for widget?
- Set custom directory in theme for page templates
- Removing a widget via theme editor
- WP Snippet to Hide Theme Editor In Dashboard Only Works On LocalHost Site
- How to customize a section of a widget only on certain pages or page
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- Themes don’t show up in the dashboard -> Appearance -> Themes
- Edit box-header on WordPress Dashboard
- Changing theme folder name disrupts widgets
- Display problems in admin dashboard when creating a new theme from scratch
- WordPress Dashboard Problem [closed]
- Best strategy for providing theme options using customizer
- Template from scratch: Sidebars not showing widget
- No “available widgets” (wordpress 3.2.1 multisite)
- What happens to bespoke page template references on theme change?
- How to add/edit content Custom Content item in theme
- Mystique theme: widgets on sidebar falling under the page content
- WooCommerce My Account Shortcode
- How to add custom css/js files to a template in wordpress
- Adding admin-ajax.php to the frontend. Good or bad idea?
- Individual Widgets per Page
- Sharing Dynamic Sidebars across Multisite Blogs
- How do I add support to my theme for custom menus?
- How do I white label my self-hosted site created by wordpress?
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Multisite: setting theme and options when a new blog is created
- How to use scss in wordpress theme?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Remove Widgets in Dashboard
- single.php change into a modal popup bootstrap wordpress
- Is it a good idea to make whole theme widgetized?
- Added a new template file to a theme – get Call to undefined function error
- Theme broken after upgrading to WordPress 4.5, missing stylesheet?
- Do not show excerpt in post content
- Modify a theme to insert custom widgets?
- Child theme not working after Parent Theme Update
- Combining wordpress themes
- how to use the slide show of Skylark in showcase?
- Switching to a child theme
- CSS Start Fresh option on; main.css still being loaded [closed]
- When creating a WordPress site how can you create different versions of the site with different themes?
- Choose sidebars column in widgets.php page [closed]
- Filter widget outputs
- Fire on widgets_init only on dashboard