• Hello,

    I would like to disable all the tooltips on the site that I am working on. I have looked at the source code and seen that the tool tip info is referred to as ‘title’ e.g. “<a title=”…

    The only place I have seen “title=” is in the function.php file and I have no idea what to edit (if indeed this is the correct file to edit).

    I may very well have followed the wrong path.
    The site I am currently working on is:
    http://www.greentrucstudio.com/projects/

    If you hover over an image it’ll simple display the file name.

    Any help on this please???

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Okay, you did say all the tooltips.

    You could use jQuery, which is included in WordPress, to do it. JQuery is already being loaded on your site as you can see by this line from your page’s source:
    <script type='text/javascript' src='http://www.greentrucstudio.com/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>

    Since jQuery is already loaded, you could try hard-coding this right before the ending “head” tag in your theme’s head.php or header.php file:

    <script type="text/javascript">
      jQuery(document).ready(function() {
        jQuery('a').removeAttr('title');
        jQuery('img').removeAttr('title');
      }
    });
    </script>

    What that should do is remove all the title attributes from links and images. If that works, I’ll tell you how to add it permanently. (Hard-coding in your theme is a no-no.) If it doesn’t work, I have some other ideas…

    Thread Starter Wildlifer

    (@wildlifer)

    Thanks for that Linux4mw2. I actually settled for leaving the tooltips, but making the show my own description (which is kind of what I wanted originally). I haven’t logged on here since, but may try your suggestion in the near future as no longer so sure about the tooltips.

    Thought I would at least check in and say thanks in the time being. This may have also helped someone else

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hatch Theme – How do I Disable Tooltips’ is closed to new replies.