Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1324040

    Hi all,

    In reference to this post:

    It appears that the code to remove image title on hover may not work anymore? I have two Enfold installations and they are both experiencing this issue.

    I am wondering if there have been some recent changes which would require a change in the code, or if there’s another way to hide image titles on hover?

    Thanks,
    Rob

    #1324206

    Hey goldengate415,
    Thank you for your patience, please check that you are not forcing jQuery to load in your footer with a caching or minifying plugin or with Enfold Theme Options ▸ Performance ▸ Load jQuery in your footer and try clearing your Enfold merged js by enabling Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files and reloading your page and clearing your browser cache. You can disable it again if you wish.
    If this doesn’t help you can try this function instead:

    function remove_all_title_attr(){
    ?>
     <script>
    (function($){
      $("*").hover(function(){
        $(this).removeAttr("title");
      });  
    })(jQuery);
     </script>
    <?php
    }
    add_action('wp_footer', 'remove_all_title_attr');

    Best regards,
    Mike

    #1324235

    Mike, thank you… that new code in functions.php did it.
    I am surprised this isn’t just a default setting for Enfold… I don’t think there are any websites I go to that show the file titles when I hover on them?
    OK to close thread… thank you again!!

    #1324237

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide image title on hover no longer working’ is closed to new replies.