WordPress.org

Ready to get started?Download WordPress

Forums

open external links in an new windows (12 posts)

  1. buxx
    Member
    Posted 8 years ago #

    Default all links will open in the same windows as the WordPress install.
    I want to open all external links, to other sites, in an new browser window. How can ik do this?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Open ALL links in a new window.

    * Put this inside the <head> section:
    * <base target="_blank" />

  3. wyckedone
    Member
    Posted 8 years ago #

    To stay compliant, you have to use Javascript. Here is a simple script that will open all links, except for domains you specify (i.e. your own), in a new window.

  4. buxx
    Member
    Posted 8 years ago #

    The first option is an very hard one, or black, of white i should say. No mild midway, so no option.
    The second suggestion is better, but i realy do not link java script, but i will test it.

    Are you people sure there is no other option? I find it strange there is not even an standard option on the backend of WP, where can i post such suggestions? Is there an wishlist?

  5. Mark (podz)
    Support Maven
    Posted 8 years ago #

    What have you searched for around the net ?

  6. Beel
    Member
    Posted 8 years ago #

    I for one am glad there is no option in WP as popups are annoying, even when they are links, and it is invalid in xhtml to boot. If I want a link to open in a new browser window on my desktop, I'll open it in a new browser window.

    I even hope the option in "Add Link" is removed in future versions as "WordPress is a state-of-the-art semantic personal publishing platform with a focus on... web standards" (except as the stamdards apply to external links ;).

    http://wordpress.org/support/topic/6642#post-39860

  7. buxx
    Member
    Posted 8 years ago #

    Indeed you have a point and i heared also the 'target' tag is not longer an XHTML valid tag.
    From that vision there is point into all this, i think i just have to think about it a bit longer.

  8. Beel
    Member
    Posted 8 years ago #

    I open most links here in new browser windows (actually new tabs) so I can stay on thread and provide feedback, but I am still glad none of them are "external" links.

  9. I hate to no end sites that open links in new windows. As Beel said, if I want a link to open in a new window, I can easily just middle click on the link.

  10. jafer
    Member
    Posted 8 years ago #

    There's always this discussion about opening "new windows" when linking, and somebody always talks about it being invalid and how much they hate it. However, it is valid in xhtml transitional, which is why I keep using transitional because I like ALL links to open in new windows and not have to use a back>back>back>back button whenever I check out a link someone's posted.

    And I don't feel like right clicking and choosing options, so there's my two cents. Hurray for _blank targets!

  11. Beel
    Member
    Posted 8 years ago #

    Now that we have both sides of the issue we can stop, can't we? ;-)

    - The Mad Shift Clicker (that's "ex" as I now use a mouse gesture when clicking a link I want to open in a new tab)

  12. bozer
    Member
    Posted 8 years ago #

    I too would like a plugin or some easy way for opening links in new windows. With blogging especially, this suprises me its not default.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.