WordPress.org

Forums

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

  1. annebl
    Member
    Posted 10 months 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 10 months 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 10 months 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 10 months 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 10 months 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 10 months ago #

  7. annebl
    Member
    Posted 10 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.