Lightbox Plus Colorbox conflicts with Marketpress

I use Lightbox Plus Colorbox (LPC) and have done for a very long time. Works exceptionally well throughout the website. However the recent upgrade to MP 3.0.2 has caused MANY issues (search my user on this forum for a complete list of errors).

One error I noticed is that when I have LPC active, it doubles up on the lightbox links in the MP category pages. So if I click an image link or a Choose Options link it will try and open 2 lightboxes and will get stuck in a loop with neither opening.

If I disable LPC the MP category pages work perfectly. But disabling LPC is not an option as I use it elsewhere on the site.

  • Michael Bissett
    • Recruit

    Hey @Myles, Michael here!

    I'd be glad to look into the cause of the lightbox issues further, but it looks like I'm going to need deeper access to your site to do so, could you please send in the following via our secure contact form, so that I can do that for you?

    – Mark to my attention, the subject line should contain only: ATTN: Michael Bissett

    – Do not include anything else in the subject line, doing so may delay our response due to how email filtering works.

    – Link back to this thread

    – Include FTP log-in details (hostname, username & password)

    – Include any relevant URLs for your site

    IMPORTANT: Please make sure you select "I have a different question" for your topic, so it doesn't go back to the forums – this and the subject line ensure that it gets assigned to me.

    https://wpmudev.com/contact/

    Thanks in advance! :slight_smile:

    Kind Regards,

    Michael

    [attachments are only viewable by logged-in members]

  • Myles
    • Design Lord, Child of Thor

    Thanks Michael

    But I may have a better solution. If MP is running it’s own Lightbox, there should be no reason for me to be running another lightbox plugin.

    Would it not make more sense for me to just use one lightbox?

    I will check the source, grab the lightbox call that MP uses and test that in other areas of my site.

    If it works, I will disable the lightbox plugin, reducing site load and solving this whole issue.

    Will post my results

    Thanks

    Myles

  • Michael Bissett
    • Recruit

    Hey @Myles,

    I’ve got an idea that I’d like to try, but I’m going to need those access details I asked for earlier, we should be able to unhook the code for this lightbox plugin on the MarketPress pages.

    If you could send those in please, I’d be glad to look into this further for you. :slight_smile:

    Kind Regards,

    Michael

  • Michael Bissett
    • Recruit

    Hey @Myles,

    I’ve tried removing this on my end by several means, but those scripts still aren’t wanting to go away. And the fact that there’s no support from the developer of that lightbox plugin presently doesn’t provide any encouragement of it’s own. :disappointed:

    With that said, I’ve gone ahead and installed this plugin on your site:

    https://wordpress.org/plugins/responsive-lightbox/

    One option that’s available to us is the changing of the CSS class targeted by that plugin’s lightbox, via the “Selector” option inside of:

    Settings -> Responsive Lightbox -> General Settings

    I’ve changed that for you to a dummy one for now, so that it’s not targeting the MarketPress products, but you can adjust the selector to be targeted to suit your needs.

    Hope this helps! :slight_smile:

    Kind Regards,

    Michael

  • Myles
    • Design Lord, Child of Thor

    Unfortunately Responsive Lightbox does not work with external pages. I load a subscription form in a modal window and used Colobox to do this seamlessly. This plugin does not handle this.

    Still searching for others, but I may hard code it in and then remove it on shopping cart pages. Not ideal, but workable.