• I’m trying to add the image widget to a sidebar within the theme customizer and it wont add it to the page until I modify one of the other fields, alt text, caption, etc. Adding widgets within the theme customizer is new functionality as of 3.9 so the plugin may need an update to work properly. It still works fine within the widgets page.

    https://ww.wp.xz.cn/plugins/image-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Bump, I’m getting the same on WP 4.

    It doesn’t seem to save settings after the image is selected, which would be the logical behaviour for the customizer.

    sky

    (@aargh-a-knot)

    I’m working on a similar image widget plugin that was having the exact same issue.

    The gist of my issue was that after selecting the image from the image library, the image url was inserted into the field, but the change was not detected, and the ‘widget-updated’ event not fired. I added a line of js that triggers the ‘change’ event on the field, which in turn fires the ‘widget-updated’ event.

    $(input).trigger('change');

    where input is the input id.

    Not sure if this has been addressed in the image-widget plugin yet, but if not, they just need to manually trigger the change event in image-widget.js.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Image Widget Doesn't Work In Theme Customizer’ is closed to new replies.