Support » Plugin: WooCommerce » Lightbox not working despite added code

  • Resolved george18sa

    (@george18sa)



    I put the following code into a must-use plugin having replaced ‘yourtheme’ with the name of our theme and nothing happens.

    What could I be doing wrong?

    Thanks!

    `add_action( ‘after_setup_theme’, ‘yourtheme_setup’ );

    function yourtheme_setup() {
    add_theme_support( ‘wc-product-gallery-zoom’ );
    add_theme_support( ‘wc-product-gallery-lightbox’ );
    add_theme_support( ‘wc-product-gallery-slider’ );
    }

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

Viewing 4 replies - 16 through 19 (of 19 total)
  • I would say there is a good chance of it. Does it contain what versions those templates are from?

    Depending on your host a lot offer some type dev environment or staging environment that you could copy the site to and test without chancing the live site.

    if you know anything about doing local sites you could copy it and set it up there to test as well.

    Plugin Support Jesse Pearson

    (@jessepearson)

    Automattic Happiness Engineer

    There is also the WP Staging plugin that allows you to create a staging copy straight from your admin. It’s highly recommended to try these types of tests.

    Plugin Support Amanda

    (@amandasjackson)

    Please review the WordPress codex on how to increase your memory limits here: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    This kind of problem is usually caused by either a conflict with your theme or with another plugin.

    The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront and disable all plugins except for WooCommerce. If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you while you’re logged in to that session without affecting normal visitors to your site. Note that Health Check may not count Storefront as a default theme, so you can also use Twenty Seventeen as well.

    If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.

    When a new version of WooCommerce is released, we sometimes update the default templates.

    This applies to major releases but also to minor releases and themes may break because they override WooCommerce’s default templates. Most theme authors fix their themes in a timely manner, so you only need to update your theme to get the updated templates.

    If the themes are not updated, or if you modified the templates yourself or are using a child theme, you need to update the templates yourself.

    You can read more about how to update the templates here:
    https://docs.woocommerce.com/document/fix-outdated-templates-woocommerce/

    Plugin Support Amanda

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Lightbox not working despite added code’ is closed to new replies.