How to open links in new – blank tab or window?
-
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?
- The topic ‘How to open links in new – blank tab or window?’ is closed to new replies.