Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi,

    So there is a setting to turn on the auto class addition… but it is not necessary.
    Simply add the class “style-svg” (or your custom one if you set it in the settings) to your IMG tag and then my plugin will swap it out for you.

    <img class="style-svg" src="https://www.ageasumbertopiedi.it/test_/wp-content/uploads/2016/07/headSlash.svg" />
    Thread Starter Pyetro

    (@subfighter3)

    Hello, I tried to activate both the auto class addition and a custom name, but it never applies nor it never swap che img into svg. simply nothing is happening.

    actually the “style-svg” auto add is activated in the plugin settings, but nothing is added:
    https://www.dropbox.com/s/ee69f7cwiiuo4wr/Screenshot%202016-07-23%2011.04.29.png?dl=0

    : (

    Plugin Author Benbodhi

    (@benbodhi)

    The code in your live example is a mess.
    Try pasting the exact excerpt I wrote for you into a blank page and see if it works.
    If not, then follow standard WordPress troubleshooting steps (revert to default theme and deactivate all other plugins to test, then reactivate one by one to find the culprit).
    I can assure you the plugin is working and this issue is isolated to your particular setup.
    If you would like to give me temporary admin access, I’m happy to have a quick look.

    <img class="style-svg" src="https://www.ageasumbertopiedi.it/test_/wp-content/uploads/2016/07/headSlash.svg" />

    Plugin Author Benbodhi

    (@benbodhi)

    Also, the auto addition of the class is only going to happen when you have that setting activated and then you add new media to a post or page in the editor. It will not magically go and add the class to existing images throughout your site.

    Thread Starter Pyetro

    (@subfighter3)

    Hello Benbodhi,
    thanks for your help.

    So I assume that is fault of my modified version of Visual Composter which comes built-in with the themeI use. i’ll try your suggestion, but I think i have to give up because I can’t leave the theme I use. I don’t have too much or messy plugin, so I think is the theme + visual composer.

    thanks anyway
    P

    Plugin Author Benbodhi

    (@benbodhi)

    Hey,

    I have used my plugin with visual composer before and it worked fine…
    Have you tried simply pasting the code I provided into a content element or even in to a text widget somewhere to see that it works?
    Like I said, if you want me to take a look, I’m happy to. You can send temporary admin login via contact form on GoWebben.com or benbodhi.com

    Thread Starter Pyetro

    (@subfighter3)

    Hello Benbodhi
    thanks for your help.

    I tried to paste your code in a simple text block and it works, you are right.

    Actually I’m using a modified version of VC, integrated in my Artbees Jupiter theme, and if I insert an SVG with their Single Image Module, it doesn’t be replaced with the svg code (with that option enabled of course).

    So I guess that my problem is the VC Module, to avoid this problem i will insert future images using the simple text block, to gain your plug in functionality.

    thanks again and have a nice day

    Pietro

    Plugin Author Benbodhi

    (@benbodhi)

    Hey, thanks for letting me know the issue with VC plugin.
    Glad it is working for you now.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Plugin not working: no class is added nor svg inline is rendered’ is closed to new replies.