logo

$4
Help with IMG and href title attribute on wordpress site

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

Dan | gteh | 03/14/11 at 11:52am | Edit


The experts have suggested, on average, a prize of $25 for this question.

(3) Possible Answers Submitted...

  • avatar
    Last edited:
    03/14/11
    12:16pm
    Rashad Aliyev says:

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

    • 03/14/11 12:15pm

      Dan | gteh says:

      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!

  • avatar
    Last edited:
    03/14/11
    12:03pm
    Sébastien | French WordpressDesigner says:

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

    • 03/14/11 12:15pm

      Dan | gteh says:

      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!

  • avatar
    Last edited:
    03/14/11
    12:15pm
    AdamGold says:

    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?

This question has expired.





Current status of this question: Completed