Open permalinks in new window?
-
Hi,
I’m using this code in the functions.php file to link Nimble portfolio thumbnails to permalinks:
add_filter(‘nimble_portfolio_lightbox_link_atts’, ‘handle_nimble_portfolio_lightbox_link_atts’, 20, 2);
function handle_nimble_portfolio_lightbox_link_atts($link_atts, $item) {
$link_atts[‘href’] = $item->getPermalink();
unset($link_atts[‘rel’]);
return $link_atts;
}How do I get the links to open in a new window?
Thanks!
Ramya
- The topic ‘Open permalinks in new window?’ is closed to new replies.