Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

How to hide image hover titles on Featured images? WordPress

  • SOLVED

Trying to find a way to hid the little title that pops up when you hover over an image. Specifically the featured image that shows on my category archive pages.

http://184.172.177.95/~chinad/?cat=9

This is a client request please dont explain the importance of keeping these titles intact. I have tried to educate the client but they are not interested! :)

Am i looking at adding a filter to my custom-function.php file or is there some jQuery code I can use?

Thanks for any help you can give me.

Thanks
Steve

Answers (4)

2012-05-23

Daniel Yoen answers:

Add before </body>

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

hope this help :)


Steve Watson comments:

Daniel you absolute legend! Worked a treat.

2012-05-23

Ivaylo Draganov answers:

Hi,

It's a matter of simply deleting the title attribute on the <a> tag:


<a title="Policy in motion" href="http://184.172.177.95/~chinad/?p=909">


Just edit the theme file which holds the piece of code generating this markup.

2012-05-23

Arnav Joy answers:

please show me the category.php


Arnav Joy comments:

check this
http://wordpress.org/extend/plugins/img-title-removal/

2012-05-23

Manoj Raj answers:

Just edit the theme file to delete the title tag or simply add this

$(document).ready(function () {

$(".entry-content a").removeAttr("title");

});


Manoj Raj comments:

it is not working as i tested it in my browser..

Try this instead

jQuery('.entry-content a').removeAttr('title');