Add script to header
-
Hello,
I m trying to add this script to the header but with no luck this is what my code looks like and its not working at the moment.
add_action( 'wp_head', function () { ?> <script> jQuery(document).ready(function($) { $('img[title]').each(function() { $(this).removeAttr('title'); }); }); </script> <?php } );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add script to header’ is closed to new replies.