Its the camel-case in the widget ID. The following works:
add_action( 'widgets_init', 'ditto_register_sidebars' );
function ditto_register_sidebars() {
register_sidebar(array(
'name' => __( 'Right Hand Sidebar' ),
'id' => 'right-bar',
'description' => __( 'Widgets in this area will be shown on the right-hand side.' )
));
}
Per the Codex:
id – Sidebar id – Must be all in lowercase, with no spaces (default is
a numeric auto-incremented ID).http://codex.wordpress.org/Function_Reference/register_sidebar
Related Posts:
- Changing $before_widget for certain widgets
- 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?
- Widgets not showing on sidebars
- 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
- 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’?
- Disable Sidebar in the Product Page in Storefront Theme [closed]
- Display a specific dynamic sidebar widgets on a specific page
- 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)
- How to conditionally display widgetized areas in theme customizer?
- Add more widget areas to a theme
- Style the archives/category sidebar widget via theme
- How to create my own sidebar in Twenty Eleven child theme?
- Do not show one specific widget on one specific page
- Restrict access to specific widget field based on user role
- 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
- Using filter in the widget causes fatal error
- disable default widgets in Responsive theme
- What happened to my Inactive Widgets?
- In a specific blog, the K2 theme does not have a Text Widget
- How do I use the default style for widget?
- Removing a widget via theme editor
- 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]
- Changing theme folder name disrupts widgets
- Best strategy for providing theme options using customizer
- Template from scratch: Sidebars not showing widget
- No “available widgets” (wordpress 3.2.1 multisite)
- Mystique theme: widgets on sidebar falling under the page content
- how to add version of style.css in wordpress
- What is the role and history of the $content_width global variable?
- Getting post-thumbnails from another WP site
- register_sidebar ignores ‘id’ and ‘class’
- Add a page outside of the current theme?
- How to create a live demo page for a theme? [closed]
- A minimalistic admin theme for a WP 3 install
- Which tabs widget plugin for wordpress is better? [closed]
- How can I develop a new theme in WordPress without disrupting the current site
- Move custom code out of theme’s functions.php file
- duplicate sidebar
- How to check if searchform.php is being included as widget?
- Two Navigation Menus – secondary nav is including main nav
- how can I remove the sidebar from my wp homepage [closed]
- Themes—Child Themes
- Protect changes made to the theme when updating
- My scripts-bundle.js file is getting sent to the browser as a stylesheet css file. Help!
- variables in translatable text
- I get the following message The uploaded file could not be moved to /home/reascom/public_html/wp-content/uploads/2012/07 [closed]
- Custom CSS doesn’t work in edit mode
- Port existing Bootstrap site to WordPress?
- Copy Widget Settings because of changed IDs
- Updating / Transferring site
- Show a widget as a sidebar fallback
- Using the same database on another Subdomain
- How to add more default colors?
- On a Https site, Css and Js Url are back to http after redirect the site
- Theme folder doesnt exist
- WordPress activate theme error $pagenow
- Increase content area width in TwentyFourteen [closed]
- Undefined variable error in theme option after updating theme [closed]
- Add a select-option to the default widgets
- Comments not displaying after changing theme
- Theme Translation?
- Recommended sidebar / content widths
- List of categories instead of dropdown menu selector in admin options
- How can I show some standard html code across any theme I install?
- Losing theme customization when switching from a theme to a child
- Problem of not changing the front and bottom of the Woodmart template by activating the really simple ssl pro plugin in WordPress
- Please help me clear my confusions about WordPress
- How can I theme or style the lost password page without a plugin?
- How to implement theme option to change bootstrap 4 container from .container to .container-fluid
- use a Thumbnail size in post
- Why does WordPress Editor Only Use Half the Box?
- Installing Theme from uploaded file. Not uploaded theme?
- How to list categories by page id in wordpress
- WordPress theme not updating in Other browsers
- WP-CLI wp theme install url PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
- Site broken after deleting inactive themes [closed]
- Does current page contain widget or sidebar
- Can i add wordpress editor to my custom theme option? [closed]
- Best way to include pagination in a theme [closed]
- What happens to bespoke page template references on theme change?
- How to change the standard width of a page
- Get header/footer list for a theme