Help - Links in wordpress posts

Discussion in 'WordPress' started by bluemanteam, May 15, 2008.

  1. #1
    Often, when I write a blog post, I will reference another site and will link to it.

    I know I manually add the code target=_blank to have the link open in a new browswer window.

    However, is there a way to set it within wordpress so that by default all links open in target=_blank rather then have to type this in manually for each link?

    I am using wordpress 2.51

    Thank you
     
    bluemanteam, May 15, 2008 IP
  2. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nope, not yet. You would need a plugin for that. In my knowledge, I think this might be easy.
     
    godsofchaos, May 15, 2008 IP
  3. themanbeast9

    themanbeast9 Active Member

    Messages:
    1,665
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    90
    #3
    I think when you add a link in the Visual Editor of Wordpress, you can easily choose whether or not you want the link to appear in a new window. That way, you don't need to manually enter code.

    However, I don't think there are any automatic things to do that yet.
     
    themanbeast9, May 15, 2008 IP
  4. ArcoJedi

    ArcoJedi Well-Known Member

    Messages:
    80
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    118
    #4
    There might be an easy way you could incorporate one line of JavaScript into your site's template to simply open EVERY link in a new window. However, for relative links, I'm not sure that would be a good idea. Digging around (Google Search), I found the following link to a JS file that you could configure with minimal effort to accomplish what you need.
    Open offsite links in new window
     
    ArcoJedi, May 15, 2008 IP
  5. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #5
    True, in Visual Editor its there for you.
     
    pipes, May 16, 2008 IP
  6. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It looks like my Visual Editor is working correctly because when I load the Write Post page, at the bottom left of the screen is an error on page message and when you doubleclick it, it says "tinyMCE is undefined line 83"

    I also have WP installed locally on my pc as localhost and I can access the visual editor and see the option you mention.

    I just don't have it in my domain that is hosted by a third party. Not sure why I get that message?
     
    bluemanteam, May 22, 2008 IP
  7. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #7
    Ive just glanced at this thread http://wordpress.org/support/topic/148796 not sure if it will sort your problem, but near to the bottom of the thread, the thread starter is talking of disabling gzip, it seems, a number of people have experienced this or similar probs on their servers.

    Let me know if thats not the same problem.
     
    pipes, May 23, 2008 IP