Deactivate Light Box

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24008
    Kgruenkgruen
    Member

    Hi,

    From time to time I would like to bypass your light box and download photos “natively.” To do this, we would need a way to disable the mo_add_lightbox_hook, either by adding an option to disable it completely on the entire site or on separate page. Or to the exclude the link by some class like: class=“no-lightbox”.

    An example of where we need this is on this page: http://www.ysura.com/download-center/
    We want website visitor to be able to download the press photos or the logos. But with your lightbox, this is awkward.

    Do you have any suggestions for us?

    Thanks

    ysura.com

    #24028
    VeenaVeena
    Moderator

    Pls add the below code in your theme’s functions.php file or in your child theme’s functions.php file and check

    function prettyphoto_dequeue_script() {
       wp_dequeue_script( 'jquery-prettyphoto' );
    }
    add_action( 'wp_print_scripts', 'prettyphoto_dequeue_script', 100 );
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.