This filter will remove it completely from all images, you can add a conditional to only effect certain images.
function remove_img_title($atts) {
unset($atts['title']);
return $atts;
}
add_filter('wp_get_attachment_image_attributes','remove_img_title');
Instead if you want to use <?php the_post_thumbnail( 'category-thumb' ); ?>
You can pass it an empty title using the second $attr
so your title tag will look like title=" "
.
It would be:
$default_attr = array('title' => ' ');
the_post_thumbnail('post-thumbnails', $default_attr);
Related Posts:
- Is there a hook which fires after all thumbnails are generated?
- get_the_post_thumbnail_url with an unregistered size
- Cropped featured image replaces original image in gallery
- No srcset for hard-cropped thumbnails
- Disable wordpress image sizes generation
- Lazyload post thumbnails
- How to stop thumbnail generation from some images and different size thumbnail generate
- Update old Post image metadata to ‘thumbnail’ wp_attached_file
- How to stop wordpress always displaying full-res images
- Fixing image names for a site being restored
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Can we use featured image as third party website image URL
- add_image_size not working
- Product Images Low Quality After Updating From WP 3.5 to 4 [closed]
- adding image to post thumbnail from another server
- How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
- How to use default image as featured image by implement some code in function.php
- WordPress Multisite: Images moved to /sites/1?
- I cannot upload images to post or the media library in wordpress
- Why image Thumbnail url is not displaying with custom size?
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- WP is showing wrong image dimensions
- Filter to remove image dimension attributes?
- How to disable WordPress from creating thumbnails?
- Stop wordpress from hardcoding img width and height attributes
- How to automatically add rounded corners to thumbnails?
- WordPress adding scaled images that don’t exist (1536×1536 and 2048×2048)
- Featured image shortcode
- How to find attachment by it’s name?
- Image Scaling using get_the_post_thumbnail issue in WordPress
- How do I delete all generated images from my server except those currently used in posts
- How to create thumbnails with a fixed width, so all of them will have the same width?
- How to limit number of images being printer out in “Set Featured Image” pop up?
- How can I add the “Use as featured image” to a custom metabox?
- Can WordPress crop only the post thumbnails?
- How to output placeholder image if no featured image set?
- Cannot access the thumbnails of attachment images… Cannot find the reason
- Featured Images on Front Page
- Show prev and next post links for parent post of current image in attachment page?
- How to make programmatic image upload generate thumbnail and sizes?
- How to check if user is uploading/setting an image as a featured image?
- attach unattached featured images to respective posts
- Thumbnails are bigger in size than the original image
- Remove image classes from post thumbnail output
- Exclude featured image from gallery in wp-admin
- Show featured image next to post-teasers in Genesis Framework?
- Show full image thumbnail
- Featured images not displaying at full resolution
- How to get cropped thumbnail source for custom post type
- WP keeps looking up post thumbnail on https even though wp-config says http
- Images stopped loadding after adding SSl
- How to replace images?
- Export xml use/import images from theme directory
- Is it possible to change image size used for preview thumnail in Add Media popup
- Get custom thumbnail sizes [duplicate]
- Custom responsive ‘featured image’ sizes
- the_post_thumbnail(‘medium’) setting some images width=1 height=1
- How to set uploaded image as featured image wordpress
- Dynamic image crop in WP 3.0+?
- What can i do add title to ‘large’ image?
- Retrieve Image Attachments Getting Post Thumbnail Image First
- Height and width attribute not setting by the_post_thumbnail
- How do I get a smaller size of an avatar image
- Why WordPress suddenly changed sizes of thumbnails?
- How to force WordPress to upscale images?
- How to set minimum required size for featured image?
- All Images not calling alt text
- How do I link a featured photo to it’s post?
- Show (print) featured image all dimensions (height, width)
- Serve different images per screen size and cache possible?
- How to Make Thumbnail of Post Stay Animated
- Convert featured images into “product images”
- Resize uploaded images [duplicate]
- How to use the thumbnail size with catch_that_image
- Thumbnail and image management
- how to change format jpg to webp?
- my featured image of wordpress are not showing in the front end though image are uploaded in media library
- How to change Gallery image url in product page ? In function.php?
- How is called this thumbnail slider feature
- Custom image size not displaying with wp_get_attachment_image()
- Auto Generate Thumbnail
- unsharp thumbnails after uploading image
- How to delete original image file after upload and resize
- An error has occurred during the upload process in wordpress version 5.3.2
- Force WordPress to always generate a thumbnail for original image
- Show featured image in all posts
- Thumbnails are hard cropped not matter what
- Blank image thumbnails in media library
- featured image in custom poste type (backend)
- Custom Background for each page and post
- Using custom field to change alt text for a featured image
- How to display image thumbnails on the search results page?
- Get custom size of thumbnails
- Trouble Retrieving Thumbnail URL on Front-Page
- Thumbnail size keeps resetting automatically
- I tried to move the featured image below the paragraphs but now it is displaying twice
- How to import external media items into wordpress media library (without using storage)
- Delete all thumbnails & regenerate them?
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- Is there a way to upscale a media library original image to the nearest whole pixel in WordPress?