1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress : How to make link that open in a new tab automatically?

Discussion in 'Blogging' started by oematan, Sep 17, 2012.

  1. oematan

    oematan Registered Member

    Joined:
    Aug 22, 2012
    Messages:
    59
    Likes Received:
    1
    Hi guys, so i have a problem about my wordpress blog.
    I'm currently using a plugin that disable text-selection and even disable right clicking. But then i realize, if i do this people can't open link to the new tab because they can't right-cliking. So then i think, is there a way to make the links on my site that can open in a new tab when they do left-clicking?
     
  2. mrsix

    mrsix Power Member

    Joined:
    Sep 13, 2008
    Messages:
    785
    Likes Received:
    465
    Location:
    PNW
    add this in your head tag

    <base target="_blank" />
     
    • Thanks Thanks x 1
  3. oematan

    oematan Registered Member

    Joined:
    Aug 22, 2012
    Messages:
    59
    Likes Received:
    1
    great! thanks, it working :)
     
  4. CyberSEO

    CyberSEO Senior Member

    Joined:
    Jul 14, 2011
    Messages:
    939
    Likes Received:
    256
    Occupation:
    programmer
    Home Page: