Problem with HTML code and widgets

  • Ricardo

    #1353

    My ‘Folow us’ widget conflicts with the rest of the sidebar widgets. As you can see, I made a ‘test’ widget with only the word ‘test’ in it, and it automatically changes it into a link. The same happens with the Twitter widget. Does anybody have any idea’s?

    http://www.fastforwardandrewind.com

    Mod

    Kenneth John Odle

    #15435

    Have you tried disabling the “Follow Us” widget to see if that’s what’s causing the problem? If so, you may want to try a different widget, or just use HTML in a regular text widget to accomplish much the same thing.

    Ken

    Ricardo

    #15436

    We’ll that was my mistake in explaining, it is a text widget with HTML code. This is the code for 1 button:

    <a href="https://twitter.com/#!/FFWD_AND_RWD"><img title="Twitter" onmouseover="this.src='http://fastforwardandrewind.com/wp-content/uploads/2011/07/Twitter-Banner.png';" onmouseout="this.src='http://fastforwardandrewind.com/wp-content/uploads/2011/07/Twitter-Banner-Black.png';" src="http://fastforwardandrewind.com/wp-content/uploads/2011/07/Twitter-Banner-Black.png" alt="" width="220" height="40" />

    The code is the source of the problem, but before the WordPress update (3.2) it has always worked.

    Do you maybe know an alternative code that would also work?

    Mod

    Kenneth John Odle

    #15437

    I see now. All of your links are missing closing </a> tags. Add those and everything should be okay.

    Ken

    Ricardo

    #15438

    Thanks!:D You’re a lifesaver!

    Ricardo

    #15439

    What could I add to the code to make the link open in a new window?

    Mod

    Kenneth John Odle

    #15440

    Add target="blank"

    The format goes like this:

    <a href="http://www.google.com" target="blank">Link Name</a>

    I make all my links open in a new window, so if my readers don’t like it, all they have to do is close the window and my site is still there.

    See this page for more help with anchor tags.

    Have fun!

    Ken

    Ricardo

    #15441

    Thanks for the info! 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!