(function($){
//since only one label with data-setting='caption' exists, use this selector
$("[data-setting=caption]").children('textarea').attr('required', true);
})(jQuery);
I’m more curious as to how adding this would affect anything since these labels are not inside a <form>
element?
Related Posts:
- show hide image script after 4 seconds [closed]
- How to modify image editor dialog options on WordPress?
- Multiple images with Media Uploader on front-end
- How can I use cached images in an AJAX response?
- Help to upload post attachments from Ajax
- Image LazyLoad plugin not loading jQuery dependancies with wp_enqueue_script in WP 3.3.1
- How to use Facebox in WordPress theme?
- How to get the image-URL from Media-Upload in a post?
- Using jQuery to automatically add class only to gif images in WordPress database [closed]
- Fancybox just loading small white square
- Hide Title tag on image Hover
- Issues Adding a jQuery Image Slider
- Display images from JS?
- Select image and display from textfield?
- Thickbox not displaying just the image, instead showing full page in lightbox
- WordPress: Preload next post images
- Theme using masonry layout script rendering overlaped images in Google Chrome [closed]
- How to delete resized (cropped) image uploads and prevent future resizing?
- How to display a page’s featured image?
- Featured image shortcode
- Cropped featured image replaces original image in gallery
- Prevent image upload unless exact size
- Use Media upload in custom widget on wordpress 3.5
- Theme Customiser Image Control
- Associate an existing image with a post
- Need help building a filter to edit the output of “image_send_to_editor”
- How to remove title attribute from gallery links and images
- How to upload image without post ID using the new media uploader?
- How to default all users to no link for attachments?
- How to output placeholder image if no featured image set?
- Display different header images based on current page
- Set a background color per image added to a post
- add_image_size() to crop images into squares?
- How to create a simple slideshow out of a post image gallery?
- How Do I Delete All The Images from WordPress
- Consolidating two websites into one, but migrated images not appearing in Image Library
- Lazyload post thumbnails
- Is there a way to change wordpress image resize settings?
- Is my code is right to make image shortcode
- Adding different backgrounds for different pages
- How to remove p tags around img and iframe tags in the acf wysiwyg field
- If Media Type .GIF
- image in my post disappeared after I upload website to remote server
- Using Fullscreenr with a wordpress blog – weird bug
- Pull images from the gallery
- Isolating images in uploads not used/recognised by WordPress
- Migrate image from my old blog
- the_post_thumbnail() image sizing problem?
- Get ALT attribute from title post (code not work)
- images not showing after transfer
- How to configure sub-domain for images on Debian Apache VPS?
- Why it doesn’t show media urls on rest Api? (WordPress)
- Resize images in existing posts
- Is there any way to Integrate WordPress with Imgur for Image Hosting
- “Unable to create new image” error in wordpress dashboard image editor
- How can I add a ‘Click to Enlarge Image’ feature, with the enlarged image opening in a popup?
- Add custom metabox to media library images
- Is there a resolution limit in image resize?
- How to remove header images from displaying (not css or editing)?
- Autosort uploads in galleries by filename
- How to display original unmodified thumbnail
- One picture belonging different galleries?
- Setting default image size
- How can I make an image full width inside a paragraph which is 70% (text) [closed]
- Images uploading from media going in wrong folder
- Row background image not showing in mobile browser served from wamp local host
- How to display image in mail header using wp_mail()
- Redirect Image Url to a page via htaccess
- How does wordpress name resized image copies?
- Media Editor uppercase extensions to lowercase
- Pagination between images (active/inactive)
- Web App mode leaves users stranded when following image links when using WPTouch with W3 Total Cache [closed]
- How to get rid of undefined variable in previous post image
- My authors need to be able to preview their upload images and manipulate and scale
- Issue with LazyLoad, sometimes my pictures aren’t showing
- Why does WordPress list all image sizes in srcset even if they’re larger?
- Lazy Loading of all Images
- wp_get_attachment_image – enable width and height attributes for an SVG image
- Custom Image Widget
- Register an embed handler for self hosted images
- Load only imagens resized in custom page
- How to inject alt and title attributes for every image in each post into HTML?
- How to see previous –next image option in the theme?
- Getting the Select and Crop Functionality Using Custom Fields
- Displaying “alt” attribute text as captions?
- Need help making my homepage blog image smaller than my post image
- After I upload a file to library its name converted to dashes
- Image to only show up in the single post page, not on the blog/home page
- How do I display image files as links?
- Broken Media Library
- wp_get_attachment_image_src() does not return what I want
- 3.5.x Theme Customize: Handling Custom Control Requests
- Wrap a post image with a div if it doesn’t have a caption
- Images in sub-pages fail to load
- How do add custom class and id to the that is generated from media gallery insert image into post [duplicate]
- Adding different classes to different images depending on size for fine control of image layout in posts
- How to display image ALT under image?
- Faster image upload on mobile [closed]
- I am having trouble displaying an image at the top of a widget area [closed]
- Can’t upload svg files in WordPress