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

Help with IMG and href title attribute on wordpress site WordPress

  • SOLVED

This may be a dumb question but I've been staring at this for a day now and can't figure out what the problem is. Im on vacation so maybe my brain isn't all there but what on earth is causing my img and a href title attributes to break the tag?

What is wrong with this?

<a href="http://www.facebook.com/pages/Just-For-Today-LLC/109413015805934" title="Facebook"><img src="http://justfortodaynyc.com/wp-content/uploads/2011/02/facebook-button.png" alt="Facebook" title="JustForTodayNYC on Facebook" /></a>


When you hover over the image, the title is not being displayed. Then when I view the source code after loading the page, it looks like this:


<a 1="" href="http://www.facebook.com/pages/Just-For-Today-LLC/109413015805934"><img 1="" alt="Facebook" src="http://justfortodaynyc.com/wp-content/uploads/2011/02/facebook-button.png"></a>


Why is the title attribute breaking and causing both the href and img tags to convert it the title to the number 1?

A link to the page is http://justfortodaynyc.com/contact

Answers (3)

2011-03-14

Rashad Aliyev answers:

I think you've got a functions on you theme. You can contact with me to get VIP support.


Dan | gteh comments:

thank you. That was the issue. I had a function to remove title tags from images for a specific part of the site and forgot all about it. thanks!

2011-03-14

S├ębastien | French WordpressDesigner answers:

paste here the content of the file functions.php please
it is in the folder of your theme


Dan | gteh comments:

thank you. That was the issue. I had a function to remove title tags from images for a specific part of the site and forgot all about it. thanks!

2011-03-14

AdamGold answers:

There's something that causes the strings to change.
Where do you use this code? (In what file?), and do you have any back-end code that checks or changes this link?