WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Url Duplicating (3 posts)

  1. HINGE-Studios
    Member
    Posted 1 year ago #

    Hello,

    New to wordpress here and for the most part things have been going very smoothly. Unfortunately, I have a problem with the buttons on my site. The buttons on the left hand of the screen are supposed to take you to different pages. While they do that perfectly from the homepage, they mess up when doing it from any other page on the site. They seem to duplicate the url instead of changing it.

    For instance, instead of taking me to HINGE-studios.com/projects/better-days, it will try to take me to http://www.hinge-studios.com/projects/better-days/HINGE-Studios.com/apocalypse-tuesdays.

    I made the buttons by putting a text widget into the primary sidebar. This is an example of the code I'm using -

    <img src="http://www.hinge-studios.com/wp-content/uploads/2013/04/betterdaysbutton-1.png"/>

    If anybody could help or needs some more information so they can help, that'd be great.

    In case it wasn't obvious, my website is HINGE-Studios.com

    Thanks,
    Jason

  2. catacaustic
    Member
    Posted 1 year ago #

    You haven't set up the links correctly.

    In the text widget that's holding those links, you need to change:

    <a href="HINGE-Studios.com/apocalypse-tuesdays">

    to:

    <a href="http://hinge-Studios.com/apocalypse-tuesdays">

    for all of the links in there.

    Note the http:// in front of the domain. That's what makes the difference. Without that browsers think that the link is relative to the page that you're on (that's why it works on the homepage, but not on inner pages).

    Also, there's no need to put capitals in links like that. Domain names are case-insensative and all browsers will convert the link to lower-case anyway.

  3. HINGE-Studios
    Member
    Posted 1 year ago #

    Thanks very much, that did the trick.

    And I know about the caps thing, haha, it's just a force of habit from typing them up that way sooo many times went not for URLs.

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic