Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #275919

    Hi there. I’ve tried a number of solutions found in other threads in an effort to remove images titles on hover with no success. The one I still have applied is placing

    jQuery(document).ready(function($){
    jQuery('img').removeAttr('title');
    });

    at the end of the avia.js document as found in this thread.
    I’ve cleared out the cache and still have image titles appearing on hover. I’ve also tried these values:

    jQuery(document).ready(function($){
    jQuery('a img').removeAttr('title','');
    jQuery('img').removeAttr('title','');
    });

    Any help appreciated!
    Cheers

    #275920

    Hi,

    Try adding this at the very end of your theme functions.php file:

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    	jQuery('img').removeAttr('title');       
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Regards,
    Josue

    #276032

    Fantastic! Thanks again!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Removing Image titles on hover’ is closed to new replies.