Get rid of "Permalink to: XXX…" tooltip

How do I prevent a tool tip from appearing on hover for post links?

Thanks.

Hi Daniel,

The easy way to get rid of that text is to write a Javascript code to get rid of the text in the title attribute of the post links that display the text when the links are hovered.

Please add this code in X > Theme Options > JS:

jQuery('a.entry-thumb, .x-recent-posts a').attr('title', '');

Hope this helps.

1 Like

Thanks for the response, it led me to searching other jQuery solutions.

For some reason, your line didn’t do anything, so I tried this:

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

and it worked. Thanks, again, for the quick response and the idea.

Hi Daniel,

Your solution seems correct but this would remove the title from every anchor tag, you should try this code instead to apply it on the posts only:

jQuery(document).ready(function($){
	$('.entry-thumb').attr('title', '');
});

Don’t forget to clear all caches including your browser’s cache after adding the code. Let us know how this goes!

Thanks for the reply. I tried

jQuery(document).ready(function($){
	$('.entry-thumb').attr('title', '');
});

But the permalinks tooltips reappear. When you say that

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

would delete titles from all anchor tags, do you mean that it will remove all tooltips? Or when you say titles, do you mean something else. Obviously; I don’t won’t to hurt my SEO, but the tooltips seem to reappear with the other solutions.

Hi Daniel,

Your code will remove all the title attributes from all anchor tags which also means that all tool-tips will be removed globally. For example if you have the following code on a page:

<a href="#" title="the title"></a>

With your script the above code will become:

<a href="#" title=""></a>

I tested both the script provided above and they works correctly on the posts links. Can you please share the URL of the page in question so we can take a look?

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.