After many hours of testing and exploring I finally found what causing the problem. If I add class to the button it’s working. But not any class, only class deo-btn.
So, this will work:
<input type="button" id="image-upload-button" class="deo-btn button button-primary" value="Add Image">
And this is not:
<input type="button" id="image-upload-button" class="button button-primary" value="Add Image">
Also, this will not work:
<input type="button" id="image-upload-button" class="just-button button button-primary" value="Add Image">
What is really weird that I’m still selecting button in JS using ID image-upload-button
Related Posts:
- Use Media upload in custom widget on wordpress 3.5
- get_intermediate_image_sizes Get the Size Names but How Do I Get the Sizes?
- including image assets in widget
- Query for recent images across multiple posts
- Help With Custom Image and Text Widget
- Link listings with image
- How to add onclick event to widget image
- Custom Image Widget
- Widget Style – Icon Type
- Widget media uploader doesn’t opens after widget save
- How do I insert a photo at the top of the sidebar?
- Set default image sizes in WordPress to hard crop
- Remove images (files) that were generated when using add_image_size()
- Displaying images from external RSS feeds?
- Why should I use “Organize my uploads into month- and year-based folders” option? (Cons/Pros)
- Which action hook can I use when a featured image has been selected
- Image resize with image url
- Preview Image Path in Admin Section
- The WordPress Gallery, Grabbing The Link and Images?
- Featured Images on Front Page
- How to upload images from my directory into my wordpress?
- Ability to edit image via WYSIWYG
- Add a featured image in my theme?
- help getting featured image using get_posts
- Featured Image .svg height and width 1px only
- Why can I not view image attachment pages?
- Images are randomly deleted from server
- Restrict Image Uploads to a Certain File Type
- Rename media files generated during upload
- Featured image (responsive) above content is too small after update to WordPress 4.4
- Image popup in a lightbox / overlay from the backend 3.5 admin area (plugin)
- Auto resize images after adding a new size
- Upload .doc to blog
- media sideload image and Google Content
- Big Image on Featured Post, Normal on Single Post
- Making images in posts link to the image file rather than the attachment page
- offload media to external services [closed]
- How can I insert an image map into a WordPress blog post?
- How to create ‘Local’ filters for WordPress srcset sizes in template parts?
- Transfer only original images to new site
- Add width & height attributes to Gutenberg’s image output?
- How to filter the image embed code based on link type
- Include image in excerpt
- Retain the original name of the image on resize
- Creating a post image to show in a gallery
- Don’t show images inserted into content
- Replace post/page titles with an image in WordPress
- What happened to the media manger?
- I want to Add My Product Image to Admin Order Email in Woocommerece [closed]
- Howto use WP built in Thickbox for images?
- Remove Image Sizes in Media Settings Page
- image_resize() with blank space [closed]
- Re-ordering images in existing post in wordpress 3.6.1
- Change Image folder Locations
- “HTTP Error” or Network Error (tcp_error) when uploading image
- Hide Featured Image box – isn’t working?
- Optimising uploads folder then re-uploading?
- Using a .pdf file as a page in wordpress
- Metabox image upload value
- image_downsize returning an Array?
- Why is WordPress automatically modifying image URLs? (Tracking pixel from RSS)
- Add images to my theme with html
- How to disable a WP Image Block to link to itself?
- How to change an image source when rendering on frontend?
- Images going blank after a while
- Confused about image sizes generated by WordPress
- Allow users to upload and display multiple photos
- Initializing the cropper for image uploads
- How to bulk change media item’s link?
- WordPress on IIS works except for image upload widget: Win 10 Pro
- attachment_fields_to_save first parameter is null
- How to show a full page when someone links directly to an image on my site
- The image keep redirect to my previous URL after I moving my site
- I cannot upload images to post or the media library in wordpress
- Can i use my Old Post image URL in my new post?
- Responsive Featured Images Not Working
- How can we achieve this image css style?
- WordPress 404 Images – Images not found after deleted from media
- How to delete images from database with product
- Media sizes do not appear
- Changing current post image uls with a function
- Display images in template file
- How to watermark wordpress images from wp-content/uploads folder with htaccess and php?
- How to display every pictures from all the posts on one page?
- How to add multiple images in a page
- Only User Upload image Http Error
- Retrieving Image Storage path
- See the all uploaded images of a user as an admin
- how to display all images from their siblings/ from same parent?
- Define Folder to save Images
- Specify what to do for a specific image number of the post
- adding images to wordpress pagination?
- Custom filename when pasting an image from clipboard
- WordPress Bootstrap dynamic carousel showing images separately not as carousel
- How do you change all images dimensions to have the same size?
- How To Get Feature Image from Blog in Same WordPress Multisite Blog on the Parent Blog?
- WPALLIMPORT Exporting images from repeater field [closed]
- What does WordPress media uploader do to image files on upload?
- Site header logo and parallax image on homepage do not display on iPhone
- Is is possible to append .webp to srcset images using wp_filter_content_tags()?