WordPress.org

Forums

Responsive Lightbox by dFactory
[resolved] compatibility woocommerce (7 posts)

  1. annebl
    Member
    Posted 1 year ago #

    The plugin doesn't work on my site when woocommerce is also activated, is this a known problem?

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

  2. Bozz
    Member
    Posted 1 year ago #

    It works fine for me. You may want to turn off the WooCommerce default pop in behavior in the settings and letting this plugin do it all.

  3. annebl
    Member
    Posted 1 year ago #

    None of the lightboxes I try seem to work on my site, so I am quite sure it is not the plugin. Thanx for replying bozz.

  4. dFactory
    Member
    Plugin Author

    Posted 1 year ago #

    1. Disable Woocommerce builtin lightbox.
    2. Enable Responsive Lightbox with default settings.
    3. Paste this into functions.php of your theme:

    function df_woocommerce_single_product_image_html($html) {
    	$html = str_replace('data-rel="prettyPhoto', 'rel="lightbox', $html);
    	return $html;
    }
    add_filter('woocommerce_single_product_image_html', 'df_woocommerce_single_product_image_html'); // single image
    add_filter('woocommerce_single_product_image_thumbnail_html', 'df_woocommerce_single_product_image_html'); // thumbnails

    It should work for default WC theme and many others.

  5. annebl
    Member
    Posted 1 year ago #

    Hi DFactory,

    thank you for replying, I've done all you've described, however there's still no lightbox.
    (I've reset to defaults). I am using a twenty twelve child (not heavily edited), here's my website:

    http://sannebloem.nl/scheurkalender/tweeduizendelf/

  6. dFactory
    Member
    Plugin Author

    Posted 1 year ago #

  7. annebl
    Member
    Posted 1 year ago #

    thanks for that dFactory, I have send a mail to my hosting provider, apparently it is a hosting problem,

    For all people after me with the same problem:
    http://docs.woothemes.com/document/jquery-cookie-fails-to-load/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Responsive Lightbox by dFactory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.