Looks like the problem is with the id
‘s.
Try putting some unique names.
For example, this doesn’t works in TwentyEleven, as it registers a sidebar with the same ID:
'name' => __('Main Sidebar'),
'id' => 'sidebar-1',
From the Codex:
id – Sidebar id – Must be all in lowercase, with no spaces (default is a numeric auto-incremented ID).
Related Posts:
- Text Widget creates a
- Get sidebar parameters (before_widget, before_title, etc.) from within a widget
- Add div class to only one widget
- What is the use case for the “Class” parameter in register_sidebar?
- How to avoid widgets added to sidebar on theme activation?
- Hooking Into Widget Output Loop
- Why do none of my widgets have a title?
- Widget area inside a widget
- More flexible sidebar and widget management
- WordPress widget new instance creates content duplicates
- duplicate sidebar
- Removing custom widget area WordPress 4.4 [closed]
- Insert Widget option into mark-up with register_sidebar
- Widgets not expanding on wordpress 3.3 widget dashbord
- Cannot save widgets in custom sidebars
- wp_register_sidebar_widget() disappered my Widgets submenu – what am I doing wrong?
- Toggle option in sidebar widgets
- Can’t see widget areas in my customizer
- Widgets not activated alert after using get_sidebar()
- Can you target a widget_class in a register_sidebar?
- Copy Widget Settings because of changed IDs
- How to pass a special CSS class into widget li
- Add class to on sidebar widget
- Save button is not working on custom widget
- Sidebar widgets – dynamic CSS : problem with widget-title
- How to customize wordpress sidebar widget
- Why is registering a sidebar for each page causing my sidebars to reset?
- activate custom sidebar widgets
- How to use register_sidebar’s ‘before_widget’ unique id generator into its other parameters like ‘before_title’?
- After adding widget the style is messing up
- Siderbar implementation with collapsible bootstrap cards
- How to create sidebar from “scratch”?
- My widgets do not save
- How to get sidebar widgets in leftsidebar template
- How Can I Replicate & Register a Widget from the Child Theme
- Widget Areas Still Appearing in WP ADMIN When They Shouldn’t
- $before/after_widget/title not displaying anything
- register_sidebar() will not wrap an element properly
- Unique widget id in sidebar
- is it possible to create custom widgets page in admin?
- Adding iframe Content to Sidebar Widget
- Storing custom dashboard widget options in wordpress
- $post>ID displays wrong post ID
- Video Embed in Sidebar Widget with Links to Others in Category
- Shortcode from a widget is wrapped in unwanted element
- How can I whitelist only specific shortcodes for processing in text widgets?
- Bookshelf plugin and/or widget [closed]
- How to update widget from widget() function?
- Manual display of widget
- Add a banner to the Dashboard
- How to access widget data from outside widget?
- How to add a description to Widgets?
- How to add multiple custom widget areas
- add_page_menu to make shortcut to widgets
- Insert custom content before widget title/after widget opening tag
- Show widget when not using SSL
- Color Picker Showing Twice When Widget Added to Sidebar
- How can I use AJAX to save/update a widget form?
- Display assigned terms with link
- How to get “Widget Logic” plugin’s input value in a custom widget code (to display on the Widget admin page)
- Extending WP_Widget throws error when Monster Widget used
- Making footer widgets responsive
- Custom html widget with a Joomla-style assigment
- Form link throwing website to main language
- Query in query for Widget
- How to display first post thumbnail as a background image of a widget?
- Create widget in dashboard displaying a custom user field?
- Hooking action once but called twice
- How to overload the update() of existings widgets?
- wordpress widgets screen disappeared
- Proper approach to moving complete site from one domain to another AND preserve widgets
- Why custom widget won’t appear in Block editor (Gutenberg)?
- Static image for embedded YouTube video instead of blank player?
- event organiser not loading in main content area
- Any available action to add content before and after sidebar?
- Creating a widget that displays the content of a page
- WordPress widget value not save?
- Countdown Widget
- Display Most Recent Post Widget Title On Page
- How do I get my custom widget to show on live site?
- Accessing WooCommerce product categories before initialising widget areas
- Create a new recent post widget
- How do I add footer widgets to the StudioPress Monochrome Pro theme?
- wp_enqueue_media(); in multiple widgets
- Add Control in Widgets Sub-Panel in Customizer
- How to get number of posts in same category as current post?
- Create a setting at backend,to print only selected categries at front-end
- three sidebars showing without call
- Widget stuck at particular point when dragging to bottom
- How to add/save/retrieve additional fields to all available widgets?
- Help with custom widget
- How to Make widget area on place of comment
- Registered widget is showing up collapsed in the dashboard
- wp_register_sidebar_widget in loop within a plugin?
- Transform php shortcode into a widget [duplicate]
- call coupon press advanced search widget anywhere in theme?
- Post Thumbnails on Sidebar Widgets
- Add the title of a widget as an ID – for anchor links
- Recent posts with different class name for each post and a scrollbar?
- Classic widgets with 5.9+?