• I have this link (the link to firefox on http://www.dylanchords.com/blog) with two ampersands in it, but on the page, they are converted to & so the link doesn’t work properly. When I click on the link in the edit window, it works fine. How do I solve this?

Viewing 15 replies - 1 through 15 (of 16 total)
  • replace it with &

    Thread Starter eyolf

    (@eyolf)

    thanks. I didn’t try to follow the link through – it still looks wrong, but the link works…

    I’ve tried using code for my situation, but it only shows the code, not the ampersand. Is there a trick to it?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Let’s pretend you have a link like www.domain.com/dogs&cats . This link will work, but whichever site displays this link will not validate. To correct this, post the link as www.domain.com/dogs&cats instead.

    I think I misinterpreted the initial question of this topic. I don’t have the ampersand in the link address; I want it in the name of the links that display on the page (in the “Links” section in the sidebar).

    bump…

    The answer is still the same. In order to “see” the ampersand on the page, in a link, out of a link, in a title, anywhere, you have to force it to appear because the browser “thinks” it’s code.

    You have to list it as & in order to show up. Some HTML editors fix it for you automatically.

    I did a web article featuring a lot of code which included the ampersand as part of the code. In order to get it to show, I had to put in:

    &&code

    in order for it to look like &code. Painful.

    So your link might be, if we understand your question:

    <a href="wordpress/linkandlack.html">Link &amp; Lack</a>

    And it would look like Link & Lack

    Reminder – the link above in the examples goes no where. Don’t click it.

    Thanks for the help, Lorelle! Unfortunately, it’s not working for me. To be sure I’m explaining what’s happening clearly:

    I go to my admin panel, click on “Links”

    I select “edit” next to one of the links I wish to edit

    In the “Basics” section in the “Link Name:” field I type in the name of the link that’s supposed to appear on my index.php. When doing so I type in the code for ampersand.
    If you go to http://www.familywebwatch.com/blog you’ll see the result in the Links category off to the right (“Missing & Exploited Children”). The funny thing is that in my “Links” panel, the ampersand is showing up fine. πŸ™

    bump…

    davi,

    i notice that two & are being include in the link twice.

    http://www.missingkids.com Missing & Exploited Children

    solarpunk, where did you notice that? Thinking you might be on to something I quickly edited the link with two ampersand codes, and got two ampersand codes in the displaying link. ??

    My head hurts…. πŸ˜›

    bump…

    Am I the only one who wants to put an ampersand in the “Link Name:”?

    I would like to put an ampersand in the actual link rather than the name but I think I’m having the same problem..

    ejm

    (@llizard)

    Try replacing each ampersand in an actual link with %26 It might work….

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘problem with ampersands in links’ is closed to new replies.