This is a proper way disable lightbox or permalinks
// To disable lightbox on nimble portfolio
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) {
unset($link_atts['rel']);
return $link_atts;
}
If you want to use permalink then copy this code in functions.php of your theme
// To use permalink on nimble portfolio
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;
}
If you want to use Protfolio URL then copy this code in functions.php of your theme
// To use Protfolio URL on nimble portfolio
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->getData('nimble-portfolio-url');
unset($link_atts['rel']);
return $link_atts;
}