target="_blank" in Wordpress

Discussion in 'WordPress' started by jokomamamita, May 23, 2008.

  1. #1
    Hello!

    Well, I'm trying to crack my head on how to make any links posted in my comments section, to be opened in a new window!

    I tried editing some of my commentators links to something like:

    But it did not work, though the target="_blank" is still there...:(

    Any help?

    Thanks!
     
    jokomamamita, May 23, 2008 IP
  2. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #2
    What version are you using?
     
    pipes, May 23, 2008 IP
  3. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It depends on your comments.php as well of your theme, maybe the author of the theme integrated target=same window explicitly! Check your comments php file!
     
    godsofchaos, May 23, 2008 IP
  4. Zero

    Zero Peon

    Messages:
    731
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I know the mistake you wrote:

    <a href="http://www.google.com" target="_blank">Check out my blog for more info!</a>

    -> you added a " too much, try it out and remove it. Hope it will work then.... ;)

    <a href="http://virtual-place.forumfrei.com/index.htm" target=_blank">VP - Webmaster Community</a>
     
    Zero, May 23, 2008 IP
  5. jokomamamita

    jokomamamita Well-Known Member

    Messages:
    1,816
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Thanks, it worked! :)

    Is there any way I could add some bunch of codes into my Wordpress Comments.php file so that every links posted in my comments section would open in a new window, instead of me going around and editing them one by one manually by inserting the target=blank" thing?..

    Oh and my Wordpress version is 2.3.1 ;)
     
    jokomamamita, May 23, 2008 IP