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

Wordpress open comment links in new tab - how to implement this?

Discussion in 'Web Design' started by Scorpion Ghost, Jun 21, 2014.

  1. Scorpion Ghost

    Scorpion Ghost Senior Member

    Joined:
    Mar 22, 2013
    Messages:
    866
    Likes Received:
    171
    Hey everyone, I have a "Noob" issue... Because I'm sort of new to wordpress.org...

    I realized just now that links posted in comments - and the clickable names of people who comment - open in the Same tab, but I'd prefer All comment links open in a new tab...

    p.s I do NOT want ALL external links to open in a new tab, ONLY ALL Comment links... I thought I'd mention it to avoid getting comments that advise me to do that...


    Ok, so I found this article that has the solution here:

    http://www.tricksbag.com/open-comment-links-new-tab/

    And it says (The Solution I find perfect):

    Now, for some weird reason I cannot copy the code from the website and paste it here, but it doesn't matter, I'll get it by viewing the source code, but first I need to now that I can implement the code...

    Basically, I have no idea how/where exactly to create a new folder in WP-content -> Plugins... Is that done through wordpress or through hostgator dashboard/cpanel?

    When I get that figured out, then I guess my next question would be, how do you create a new PHP file in it?


    I hope someone can help me, anyone with even medium wordpress experience can help me with this, surely... I can return the favor for blogger blogs, because they just have HTML and CSS, which is awesome :D

    But PHP, Plugins, creating folders in my site's structure or whatever, that's out of my league at the moment...

    So lend a helping hand and expand a little on how exactly to implement the solution, please...


    p.s If there's a better way to make ALL comment links to open in new tabs I am all ears... But note, I don't want to use plugins for things which can be installed in the website by me using code...


    Thanks yall..
     
  2. Scorpion Ghost

    Scorpion Ghost Senior Member

    Joined:
    Mar 22, 2013
    Messages:
    866
    Likes Received:
    171
    Bump...............
     
  3. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,147
  4. qqroach

    qqroach Newbie

    Joined:
    Feb 23, 2014
    Messages:
    10
    Likes Received:
    0
    I would recommend the first method which is simpler.

    But if you insist on the plugin method, you create a new directory called comment-links-in-new-tab anywhere on your computer and inside create the comment-inks-in-new-tab.php file and paste the code in the article you linked. Once done you just connect to your host's ftp and copy the folder to <your-wordpress-installation>/wp-content/plugins and then activate the plugin in the wordpress admin panel.