WordPress.org

Ready to get started?Download WordPress

Forums

NewsPage
How to open links in new - blank tab or window? (1 post)

  1. mjefferson96
    Member
    Posted 1 year ago #

    I need to open up the feed links in a new tab instead of the same tab. I've checked the code and tried changing

    $html .= '<a>get_permalink() . '" '.( (bool) get_option('newspage_newwindow') ? 'target=_new' : null ).'>'.$item->get_title();

    to

    $html .= '</a><a>get_permalink() . '" '.( (bool) get_option('newspage_newwindow') ? 'target=_blank' : null ).'>'.$item->get_title();

    and

    $html .= '</a><a>get_permalink() . '" '.( (bool) get_option('newspage_newwindow') ? 'target="_blank"' : null ).'>'.$item->get_title();

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Your posted code has been permanently damaged/corrupted by the forum's parser.]

    but it still opens new the same parent tab / window.
    Can anyone help?

    http://wordpress.org/extend/plugins/newspage/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.