WordPress.org

Ready to get started?Download WordPress

Forums

Links targeting a new window ONLY while logged in to WordPress (3 posts)

  1. Alchemedia
    Member
    Posted 3 months ago #

    Hi all, I'm having an issue with external links on a client's site, which are coded to open in a new tab/window using target="_blank". When I'm logged in to the back end of WordPress, the links work as they are supposed to (in previews as well as published pages), but when I log out or test them in a different browser, they open in the current tab. Here's an example: http://urbanbuiltllc.com/portfolio/noodles-company/. And here's the current html for the link:
    <a href="http://www.noodles.com/"><img class="aligncenter size-medium wp-image-3894" alt="Noodles & Co IPO" src="/wp-content/uploads/2013/12/Noodles_Logo-300x171.jpg" width="200" /></a>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    We've ruled out individual browser settings related to tabs/windows and cookies.

    For what it's worth, I'm aware of all the reasons many people hate links that force a new window or tab, but the client is insisting they be used in this case. For our purposes here, I'm interested in figuring out why they're not working, rather than debating their merit ;).

    Thanks!

  2. Alchemedia
    Member
    Posted 3 months ago #

    oops, I pasted an incomplete html code. Here's the complete version:

    <a href="http://www.noodles.com/"><img class="aligncenter size-medium wp-image-3894" alt="Noodles & Co IPO" src="/wp-content/uploads/2013/12/Noodles_Logo-300x171.jpg" width="200" /></a>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  3. Alchemedia
    Member
    Posted 3 months ago #

    aha, it wasn't me. Sorry, I'm new to this forum, just figured out that it's linking instead of showing plain text of the code for the link. The image in question (noodles logo) is linked and includes target="_blank" in the a tag.

Reply

You must log in to post.

About this Topic