Support » Plugin: SVG Support » Trigger style-svg after woocommerce basket update

  • I know this question has sort of been asked before, but I’m scratching my head on where/how to trigger the style-svg script after an ajax call has been made.

    I have a woocommerce store with an svg cart icon and counter in the ‘view cart’ button. The counter gets updated via an ajax fragment, which reloads the entire button, complete with the <img class="style-svg" /> markup, which I guess is not being caught by your script and thus rendered as an inline svg.

    At what point does your script run, and how can I tap into it to make it run again after the ajax refresh on the button fragment?

  • The topic ‘Trigger style-svg after woocommerce basket update’ is closed to new replies.