Hide Title tag on image Hover

Check Errors in console by pressing F12, Your code is correct but WordPress sometimes don’t understands $, Use jQuery instead of $. <script> jQuery(document).ready(function($) { jQuery(‘img’).hover(function() { jQuery(this).removeAttr(‘title’); }); });

Shortcode not work in picture source srcset tag

i fix this with a new shortcode that generates the entire tag. Like this: function generate_image_tag($atts) { $atts = shortcode_atts( array( ‘img’ => ”, ‘title’ => ”, ‘theme_url’ => get_bloginfo(‘template_url’), ), $atts ); //File path details $file_info = pathinfo($atts[‘img’]); $file_dir = $file_info[‘dirname’] != ‘.’ ? $file_info[‘dirname’].”https://wordpress.stackexchange.com/” : ”; $file_url = $file_dir . $file_info[‘filename’]; $output=”<picture> <source … Read more