Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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;
    }

    Please add the code in your theme function.php

    // Portfolio  URL change
    add_filter('nimble_portfolio_posttype_slug','handle_nimble_portfolio_posttype_slug');
    function handle_nimble_portfolio_posttype_slug(){
    return 'project';
    }

Viewing 2 replies - 1 through 2 (of 2 total)