Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, it is possible!

    Those tooltips you are referring to are actually title attributes attached to links in your theme or content.

    You can either remove the title attribute manually from href’s, either use a jQuery script to disable all the title attributes automatically.

    Something like this: $("body > a").attr('title', ''); – this will replace all title values with an empty value

    Thread Starter terrorjunk2

    (@terrorjunk2)

    Thank you, I’m trying to figure out where I should add the code, I tried adding it into an existing jquery script that is loaded onto every page but that doesn’t do anything, also custom.css & functions.php doesn’t work.

    Ok, @terrorjunk2,

    Please try to add this following code instead. It is recommended to place it in your theme’s footer.php file right before wp_footer() function.

    <script type="application/javascript">
        
    	jQuery(document).ready(function($) {
    		
    $('[title]').each( function() {
        var $this = $(this);
        $this.data('title',$this.attr('title'));
        $this.removeAttr('title');
    });
    
    		});  
        
        </script>

    Simply copy and paste it exactly as it is and it should work if you have jQuery loaded in your theme.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Removing All Tooltips’ is closed to new replies.