• Resolved tristannz

    (@tristannz)


    ok, this is a common problem:
    The (I think) hardcoded them lightbox is displayed under the FooGallery lightbox. When closing the FooGallery lightbox, you’re still left with the (in this case) Prettyphoto lightbox.

    Solutions.
    1. Have tried to turn off the Prettyphoto lightbox in the theme options but only have a choice between 2 lightboxes. “None” is not an option.

    2.Have tried numerous other support thread solutions.

    3. Have tried adding this code to funtions.php which I found on another solution but it has not resolved the issue.

    function remove_scripts(){
      wp_dequeue_script('prettyphoto' );
      wp_deregister_script('prettyphoto' );
    }
    
    add_action( 'wp_enqueue_scripts', 'remove_scripts', 100 );

    Any suggestions?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support elviiso

    (@elviiso)

    Hi @tristannz

    From your gallery page, it does appear that you have the FooBox Lightbox plugin installed and activated.

    The first solution that I’d like you to try is to go to your admin dashboard and navigate to FooBox -> Settings and on the “Advanced” tab, select the “Disable Other Lightboxes” option and save changes. Refresh your page and see if that will have disabled the PrettyPhoto lightbox from opening your gallery images too.

    Kindly try this and let us know how it goes.

    Kind regards,
    Elvis.

    Thread Starter tristannz

    (@tristannz)

    Thanks Elvis. Early in the morning for me here but following your instructions, I couldn’t see that option. Of note is that you mention FooBox and this issue relates to FooGallery. Not sure if that’s key information or not. See screenshot link below for the options that I have available on the Advanced Tab.

    https://www.dropbox.com/s/2wm8h7yd1q9bkj9/Screen%20Shot%202021-04-13%20at%203.32.28%20AM.png?dl=0

    • This reply was modified 3 years, 10 months ago by tristannz.
    Plugin Support elviiso

    (@elviiso)

    Hi @tristannz

    Although you are using FooGallery to create the gallery, you are using FooBox as the gallery’s lightbox, and so the issue also relates to FooBox too to some extent.

    On top of that, we built in a feature that is a potential fix to this issue in FooBox.

    Kindly navigate to FooBox -> Settings and on the “Advanced” tab, select the “Disable Other Lightboxes” option shown in the image linked below and save changes: https://prnt.sc/11arqc6

    Kindly try this and let us know how it goes.

    Kind regards,
    Elvis.

    Thread Starter tristannz

    (@tristannz)

    Ahh. Right. I see exactly. Hadn’t picked the other settings area for FooBox. Have found that now and problem resolved.

    Thanks for the support, Elvis. That had me scratching my head. Much appreciated.

    Best regards,
    Tristan.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to disable WP theme lightbox’ is closed to new replies.