[Support request] Disable Title tooltips

Home Forums Support Disable Title tooltips

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1388182
    Roberto

    Hi, is there a way to disable the tooltips of the “a” tag?

    On many links and images I get a tooltip that takes the title field, I would like to disable this tooltip without having to delete the title field. is there a way?

    I found this code and tried adding it with element, but it doesn’t work.

    
    $(".element").hover(function(){
    
            // Get the current title
            var title = $(this).attr("title");
    
            // Store it in a temporary attribute
            $(this).attr("tmp_title", title);
    
            // Set the title to nothing so we don't see the tooltips
            $(this).attr("title","");
            
        });
    
      $(".element").click(function(){// Fired when we leave the element
    
            // Retrieve the title from the temporary attribute
            var title = $(this).attr("tmp_title");
    
            // Return the title to what it was
            $(this).attr("title", title);
            
        });
    #1388399
    Leo
    Staff
    Customer Support

    Hi there,

    This isn’t something that the theme can control but maybe one of these solutions would work?
    https://wordpress.stackexchange.com/questions/6135/remove-title-attribute-from-images

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.