WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Links not opening properly (18 posts)

  1. darkbluewaters
    Member
    Posted 2 years ago #

    My website is not new. http://www.darkbluewaters.com As of yesterday when I click on any link, it does open in a new tab but it also opens on the same tab as my website. (So the new website is now open on two tabs).

    The code has not changed: target="_blank"

    I also tried switching templates between the free one I am using for this site and a premium one to see if there was problem with the template.

    Thank you in advance!

  2. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    I do not find any problem as you describe. The site's links function as they are expected to. Clear your browser caches and try again.

  3. riversatile
    Member
    Posted 2 years ago #

    Hi,

    It should depends your internet browser ! Because for me (Google Chrome release 19.0.1084.56 m, when I click a link, it opens in a new tab, and on the first tab, it holds on.

    Regards

  4. riversatile
    Member
    Posted 2 years ago #

    Check if your computer is not infected by a virus/spyware !

  5. darkbluewaters
    Member
    Posted 2 years ago #

    Thank you so much for your help!

    I just checked the site on my iPhone and it is doing the same thing. I click on a link and it opens a new page. When I close to look at all the pages open on my phone, the last page (which should be my website) is now also the new linked page.

    Again thanks!

    (I have also done the virus check and the cache clean).

  6. darkbluewaters
    Member
    Posted 2 years ago #

    Interesting (but not in a good way) is when I click on the link to my site from my first post on this page, it responds in a very different way. The links do open on a new tab at all.

    Please copy and paste http://www.darkbluewaters.com in a new tab to see my concerns (Again thanks!)

  7. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    @darkbluewaters,

    Your site works quite fine. I have just now tried it on Firefox, Chrome and IE. I do not find any unusual behavior in any of these browsers.

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    That's not happening for me in Win7/Firefox 13. Why on earth do you have links to pages on your own site opening in new tabs? Do you know just how bad that is from a web design, web usability & web accessibility point of view?

  9. darkbluewaters
    Member
    Posted 2 years ago #

    Thank you Krishna for your time

    I am very confused as I have tried on two computers and my phone.

    On the home page, there is the link to Copley Community Orchard.

    When you click on that link, does a new tab open with Copley's website and Dark Blue Waters stay on the original tab?

    My experience (since yesterday, is they both are changing).

    Thanks

  10. darkbluewaters
    Member
    Posted 2 years ago #

    OK thanks Esmi. I am still fairly new to web design. I will make the changes.

    What about the links leaving my site?

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    I still wouldn't ever spawn new windows. what's the point? You'll just annoy people at best. At worst, you'll leave some people stranded - unable to navigate back to your site. A web site isn't a cage, You can't keep people on it. It's a resource. If you want people to stay, give them a darn good reason to stay via your content. Then, if they want, they'll open links in new tabs or windows themselves via their browser/user agent.

    Trust me - it does work. :-)

  12. mdfreeman
    Member
    Posted 2 years ago #

    DarkBlueWaters - I can see the problem you are having on your site. Clicking on the link for Copley Community Orchard on your first page causes the original tab to change to the target URL as well as open a new tab going to the target URL. Very odd since I can see that you code is a regular _blank target. Hope a solution appears.

    Esmi - You are right the user can't get back to the original page via navigation but it is also good to not have your page close up either. All depends on what you are trying to achieve.

  13. darkbluewaters
    Member
    Posted 2 years ago #

    Thanks Esmi for your time and suggestions!

    The only trouble is I need to know how to fix this as it switches the page on the iPhone too which is unexpected when you open a new page. Something has to fix this as it just happened two days ago.

    Thanks for checking mdfreeman.

  14. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Try replacing this <a title="Copley Community Orchard" href="http://www.copleycommunityorchard.com">Copley Community Orchard</a>

    And let me see the result.

  15. darkbluewaters
    Member
    Posted 2 years ago #

    Hmmmmmm!

    First of all, thank you Krishna for your suggestion!

    I changed the code to what you suggested. The result was when you clicked on the link, it switched sites without opening a new page.

    Then just for fun, I clicked the option to open in a new tab.

    I have no idea why, but at that magical moment the website's links (all of them) are working. (Strange!!!)

    So thank you all very much.

  16. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    You may read this article about using target=_blank etc., though as Esni explained, I rarely use them.

  17. darkbluewaters
    Member
    Posted 2 years ago #

    Great read Krishna.

    I found this article about the issue of opening a new tab or not. The comments are very interesting as many people have strong feelings one way or another regarding this topic.

  18. gladglen
    Member
    Posted 1 year ago #

    In the last days, all of a sudden my hyperlinks are not opening in a new tab even though they are set to. Is there a glitch with wp??

Topic Closed

This topic has been closed to new replies.

About this Topic