WordPress.org

Forums

Guardian News Headlines
How Do I Change the Code to Open in a New Tab? (3 posts)

  1. PH1L
    Member
    Posted 1 year ago #

    As the title says; I would rather my apps did not take people away from my sites, so it would be much appreciated if you could tell me what code I need to add and where please.

    My sites are based on video game and PC security themes; will the app automatically detect this and show appropriate headlines when available?

    Thanks for any help you can give.

    Cheers

    Phil

    https://wordpress.org/plugins/guardian-news-headlines/

  2. lucus81
    Member
    Posted 11 months ago #

    Hello,

    Here is solution:

    Find the file: gu_headline.php (in plugin folder)

    and change this line:

    <p>url; ?>"><?php echo $this->headline; ?></p>

    into this:

    <p>url; ?>"target="_blank"><?php echo $this->headline; ?></p>

    and all news will be opened in the new window.

    All the best
    Lucas

  3. PH1L
    Member
    Posted 11 months ago #

    Cheers that's great.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Guardian News Headlines
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic