• Resolved tobbeorebro

    (@tobbeorebro)


    I have svg image with clickable elements. It works when it is open direct in a web browser. But in a WordPress page with the SVG Support plugin the whole image is clickable casing the image to open in the whole browser window. How can I get rid of this so the onclick events of the elements in the image is reachable?
    This is the image link:

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

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

    (@benbodhi)

    Hello,

    Sounds like you just need to render the SVG inline still. That’s one of the main features of my plugin, allowing you to do this by simply adding the class style-svg to your img tag. This is exaplined in more detail in the plugin description and on the plugin settings page in your wp-admin.

    Let me know if I can help further.

    Thread Starter tobbeorebro

    (@tobbeorebro)

    A mistake from my side. My intention was to show the link text not the actual link.
    This encoded attempt maybe works better.

    Is you can see class=style-svg is included in the link. What to do next?

    Thread Starter tobbeorebro

    (@tobbeorebro)

    Encoding didn’t work either.
    I try this: Image part of the link: without < and >
    img class=”style-svg” src=”https://convention2019.se/wp-content/uploads/2019/02/kartinfo.svg&#8221;

    Plugin Author Benbodhi

    (@benbodhi)

    Sorry, I’m a little confused as to what you’re trying to do. Can you please explain a bit more to help me understand the outcome you’re looking for?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Suppress default onclick’ is closed to new replies.