In my custom widgets, I had omitted adding the ID to ‘before_widget’ markup, as I wasn’t using the IDs for styling. Turns out this is what the Customizer JS is using to target the widgets. (duh)
So, including the proper ID in the widget output makes everything work as it should.
Related Posts:
- Can a widget in the Customizer be “single-use” (i.e. disabled after 1 instance has been added)?
- Enabling jquery when dragging available widget to sidebar area
- Changes in widget customizer not triggering ‘save and publish’
- How to refresh Theme Customizer after change color inside wpColorPicker?
- Widgets not displaying in theme customizer
- How do I rebind event after widget save
- How to listen to color changes on the color picker?
- Where to get the unsaved list of widgets in customizer?
- Ban certain widgets from certain sidebars
- Widget “Save” resetting jQuery hidden fields
- jQuery does not work in widget backend
- Trigger Submit Event when Widget is added to Sidebar
- Using jQuery in widget development
- Remove the widgets tab from theme customizer
- cannot drag and drop widgets since wordpress 3.2.1
- AJAX Contact Form Issue
- Wp Customizer event for when a new widget has been added
- How to determine the number of widgets contained in a sidebar via customizer JS
- Sidebar not show customizer!
- jQuery UI inside widget on admin page
- WP_enqueue_script() loads them always in wp_footer()?
- Can’t see widget areas in my customizer
- Adding widgets with Featured Image via the Customizer run hundreds of queries
- Wrap the widget content with a div and get the widget title outside? [closed]
- Widget changes in customizer ajax error to many options?
- Color picker in widget appears twice when added via the Customizer
- Sorting widget control
- Access Customizer widget instance form
- How i can widget ID get after drag for wordpress with jquery?
- wordpress widget missing jquery
- WordPress Edit Button not appearing for widget in customizer
- Making jQuery .change() event persistent after widget save
- Make single widget area top level in 4.0 Customize Panel
- Jquery checkbox -show posts with checked tags
- Widget not appearing in customizer
- How do I enable the admin form for a custom widget that is called in a sidebar template, not to widget area?
- How to move widget area to another section in WordPress Customizer
- Force update widget customizer using js
- Add Control in Widgets Sub-Panel in Customizer
- Add Social Media icon widget to customizer
- Use customizer or sidebar for header settings?
- Using AJAX in WordPress Widget
- Using javascript on the new widget preview / customizer page
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- Multiple widgets in wordpress
- jQuery “on” handler does not fire on newly inserted widgets [closed]
- Using AJAX in a Widget to Sort items [closed]
- Programmatically add widgets to sidebars
- WordPress 3.8 – Dashboard 1 Column Screen Options
- Executing Javascript When a Widget is Added in the Backend
- Loading scripts only if a particular shortcode or widget is present
- Limit number of Widgets in Sidebars
- How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
- Give Editor Access To Sidebar
- How to load Widget javascript + css files only if used?
- Where is the content of widgets stored in mysql table
- Hide specific categories from category widget
- changing wp-admin/widgets.php
- Add class to before_widget from within a custom widget
- How can I use the built in WordPress “browse link” functionality?
- Is there any way to dynamically alter widget titles?
- Translate widget titles using qTranslate plugin
- Code for Recent Posts Widget
- Get number of widgets in sidebar
- Text Widget creates a
- check if registered sidebar is active & has widget content
- How to edit widgets in WordPress
- dynamically add scripts to WP_Widget widget() method
- Extend WordPress 3.8 Site Activity Dashboard Widget to include more comments
- How to use is_active_widget?
- Get a list of all Widgets registered in WordPress admin widgets-area
- Modifying the default search widget
- Adding iframe Content to Sidebar Widget
- How Do I Add Custom CSS To Only Certain Widgets
- Get Widget Instance inside Widget
- Show post tags in a widget
- Author template, filter sidebar widgets by author?
- Prevent widgets removal
- Add the sidebar/widget editor to the post edit screen?
- WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
- Does the number of widgets installed affect website performance?
- WP_Widget deprecated error in WordPress V4.3
- What is the quickest way to make a widget?
- How to display custom widget anywhere
- Show Woocommerce minicart widget in checkout page sidebar? And, how to make this update secure by overriding widget?
- Get page IDs based on which template they are using?
- Add filter to blogroll widget
- Widget Options Not saving
- Indexes of widgets instances starts with ‘2’ in ‘wp_options’ table
- How to use wp_dequeue_style() for style enqueued in WP_Widget class
- Complex widget form UI – examples and best practices
- How do i manually place a widget code
- How to override the wordpress default widget markup
- Why is the $old_instance needed for the widget update function?
- Embed iframe or html page into dashboard widget
- Storing custom dashboard widget options in wordpress
- Get sidebar parameters (before_widget, before_title, etc.) from within a widget
- Prevent second widget activation
- How can I add links to widget titles?
- Color Picker (iris) in widget – refresh when edited in Customizer