I’m trying to add an image to the featured box widgets, but clicking on the “Upload Image” button does nothing. How do I add images to this widget?
Open the image in the media library and copy the url, then go back to the widget and paste it in the url field for the image.
Thanks Lori. I’ve gone ahead and done that, but it would be nice if the upload function worked instead of having to do this manually.
wp_enqueue_script('uuafbw-media-upload', plugin_dir_url(__FILE__) . 'uuafbw-media-upload.js', array('jquery'));
wp_enqueue_script('uuafbw-media-upload', get_theme_file_uri( 'lib/widgets/uuafbw-media-upload.js' ), array('jquery'));
and it works now. Of course that change will get wiped out when they update the theme.