WordPress.org

Forums

WP125
Blank new window and No follow link (4 posts)

  1. vinzen
    Member
    Posted 1 year ago #

    Hi, Great plugin but I want the links to the advertisers to be "nofollow" and open in a new window, so please let me know how I can have that? Usually, you put rel-"nofollow" target="_blank". What do we do here? Thanks.

    https://wordpress.org/plugins/wp125/

  2. canadianangelxo
    Member
    Posted 1 year ago #

    Hi @Vinzen. I was also looking for this answer. But found it myself after looking at the code on my site. It seems that the plugin already includes the "nofollow" tag. If you go to your website and right click on your ads and select "inspect element(Q)" you will see rel-"nofollow" at the beginning on the link code. Hope that helps! :)

  3. vinzen
    Member
    Posted 1 year ago #

    Hi @Canadianangelxo. Thanks for the shout out - I didn't know that and it certainly helps. However, I went ahead and edited the WP125.php file.

    You can find a code line there as follows:
    //define("ADLINK_EXTRA", ' target="_blank"'); //If you absolutely *must* open your ads in new windows, uncomment this line

    So, just remove the "//" from the beginning of this line. I also added a similar code where I replaced target="_blank" with nofollow.

    Hope this helps you! :)

  4. canadianangelxo
    Member
    Posted 1 year ago #

    Thanks! @Vinzen I believe that the target="_blank" was already included in the code somewhere as well. I seen it twice when I went to add it myself with the rel"nofollow" lol so I deleted the ones I added :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP125
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic