• Hey guys, wordpress newbie here. I’m building a website for a Pan-American scooter trip and I’ve just added a PayPal donate link/logo in the Secondary Widget area using a text widget and following instructions I found online. I just want the Paypal “Donate” logo to link to the Paypal site which it does, my problem is that everything I add to my pages now automatically becomes a link to said Paypal site.
    The code I’m using in the text widget is:

    <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RXYSPNJKJUVB2">
    <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" />

    To see the problem in action you can go here http://www.stepthrupanam.com/blog/?page_id=7
    and you will notice that the text and google map that I have posted have become links to the Paypal site.

    Any help would be much appreciated 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The problem I believe is you don’t close the link element. So your code should look like this:

    <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RXYSPNJKJUVB2">
    <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" />
    </a>

    Notice the . This close the link and should stop it from making everything else on the page a link as well.

    Thread Starter stepthrupanam

    (@stepthrupanam)

    I tried putting in the at the end but the problem remains.

    Thread Starter stepthrupanam

    (@stepthrupanam)

    Fixed! I had the </ a> in there but I was missing a > at the end of the link.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Text widget link problem’ is closed to new replies.