• Resolved art478

    (@art478)


    The plugin publishes with a link going to https://www.weather-atlas.com. The plugin is built to execute the link with target=’_blank’, to open the link in a new tab or window. WordPress advises that external links with target=’_blank’ need rel=’noopener’ or they are insecure. WordPress is adding this tag to external links in blog posts.

    I’ve tried adding this label to your class-weather-atlas.php file but the code executed is still simply target=’_blank’.

    Can you advise some way I can either add “noopener” to the executed code, or else remove “target=’blank'”?

    Thanks for your help!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Weather Atlas

    (@weatheratlas)

    Hi art478,

    here are the solutions:
    1.
    edit /includes/class-weather-atlas.php
    on 2 lines (1116 and 1121, or wherever you find target=’_blank’)

    1.a) remove target=’_blank’
    or
    1.b) add rel=’noopener’

    Or
    2. don’t do anything,
    following your advice rel=’noopener’ will be added in the next version.

    Hope this solves your issue : )

    Thread Starter art478

    (@art478)

    Many thanks, Weather Atlas! Outstanding support, and multiple solutions. You get a gold medal for that. Well, a 5 star review at least!

    Plugin Author Weather Atlas

    (@weatheratlas)

    We’re glad that we’ve solved the issue and
    grateful for extensive and commended review.

    We’re here if you have any more questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need rel=”noopener” on external link’ is closed to new replies.