• Resolved stender89

    (@stender89)


    I am using jquery, to add an SVG from the server to a sliders pagination.

    This is not really working though.

    My guess is, that the plugin has already fired, before my js is running.
    Is there a function to force redraw an img element to SVG –

    Currently I am using the standard class “style-svg”
    But i was thinking, that I could use a class called “style-svg-later” and call your function on that in my script?

    currently this is my code for showing the svg
    nextText : '<img class="style-svg whitePaths" src="'+directory_uri.templateUrl+'/inc/icons/Arrow_white_fitted.svg">',

    Which is getting the URL perfectly fine.

    • This topic was modified 5 years, 7 months ago by stender89.
    • This topic was modified 5 years, 7 months ago by stender89.
Viewing 1 replies (of 1 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi there,

    You could dequeue then enqueue my plugin script that inlines SVGs found in IMG tags whenever you want.

    Could you not just use it as an image in this case? Does it need to be inline SVG? And if so, could you just use the SVG code directly in your code? Just curious because I’m not too sure what the outcome is you’re going for.

Viewing 1 replies (of 1 total)
  • The topic ‘Image added on document ready, not transformed’ is closed to new replies.