• Resolved jacobreimann

    (@jacobreimann)


    I have code snippets installed and it was working fine until a recent update – I think it was a theme update but not sure.

    I have the snippet

    remove_theme_support( ‘wc-product-gallery-zoom’ );

    installed and live but you can see from the link that it has stopped working.

    How can I find out what could be stopping this working?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    If a theme update broke your snippet, then it seems like something has changed in how that theme does things. Possibly it no longer uses that feature, or possibly it just registers it at a different moment in the WordPress load order.

    As a start, you could try just registering theme support on a later hook:

    add_action( 'after_setup_theme', function () {
        add_theme_support( 'wc-product-gallery-zoom' );
    }, 200 );
    Thread Starter jacobreimann

    (@jacobreimann)

    Hi Shea.

    Awesome that works thanks

    Plugin Author Shea Bunge

    (@bungeshea)

    Glad to hear it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code snippets stopped working’ is closed to new replies.