Support » Fixing WordPress » Double URLs on links

  • Resolved alexissdawn


    I’ve been working on getting my site up and everything has worked so far up until I tried putting a few links into my header.php to make a navigation bar.

    My site is www. alexissdawn . com/blog. If you look under my header image there are random links – but when you click on them the page is not found. I noticed though that the url it’s set to is double. For example, the “Home” link address is set to:

    So it’s doubling up for some reason – but my code is:

    It’s the most basic html code but it’s not working. I’ve spent hours searching forums but still can’t figure it out. It’s a brand new site so I haven’t moved anything over and I’ve only messed a bit with the header.php and stylesheet. Any ideas??

    UPDATE: After I posted I looked at it and it screwed up again. Above where I put in my code, I didn’t space it out so you could see it:

    a href=”””” Home /a

    (Obviously I don’t have all of those spaces and I have the brackets in my code – just wanted you to be able to see it.)

    But look above how the link is set to:

    Why is it grabbing another page and putting it into the code before it puts the link I coded it for?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I see this in the source for your site:

    <div id=”navbar”>
    <a href=””>Home</a>
    <a href=””>WordPress</a>
    <a href=””>Oklahoma!</a>

    Note how the double-quote marks are not straight quotes ("). Basically, your browser is not interpreting them as quotes. Rather, it sees the opening as part of the path.

    AH! You’re right! That was one of those weird little things. Thanks for catching that! It’s working now! THANK YOU!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double URLs on links’ is closed to new replies.