• I have a lightbox plugin installed who i need in my WP Website on several pages.

    In my Portfolio page i have two Lightboxes, how can i Disable the Ligtbox from TLP ?

    Thanks in Advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support SM Rafiz

    (@srafiz)

    Hi @winock

    Sorry for the late reply. There are two ways to disable the lightbox provided by our plugin. Please see below:

    1. In the Portfolio Shortcode you published, go to the Field Selection tab. From here, you need to uncheck the ‘Zoom Image’ checkbox (https://prnt.sc/SsPbqbXyDtto). It will disable the lightbox from the front end. But it will also remove the zoom icon that triggers the lightbox. In your case, it will disable both of the lightboxes as there will be no icon to trigger any lightbox.

    2. If you want to just remove our lightbox, but not the trigger icon, you need to override/modify the portfolio template from your child theme. Please see the below method to override the template:
    a. Please copy the template file from tlp-portfolio/lib/templates/layouts/layout1.php and paste it to your child theme as child-theme/tlp-portfolio/layouts/layout1.php.
    b. Open the layout1.php of your child theme in a code editor. Go to line:17 to find:
    $zoom_image_icon .= sprintf( '<a class="tlp-zoom" href="%s"><i class="demo-icon icon-zoom-in"></i></a>', esc_url( $imgFull ) );

    Replace the line with:

    $zoom_image_icon .= sprintf( '<a href="%s"><i class="demo-icon icon-zoom-in"></i></a>', esc_url( $imgFull ) );

    Check your front end to find that one of the lightboxes is disabled.

    Hopefully, your issue will be resolved by following either of the above methods. Thank you. Have a nice day.

    Thread Starter Patrick Horemans

    (@winock)

    It is working, Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable TLP Lightbox’ is closed to new replies.