Custom SVG issue

Posted in: Newspaper
Post count: 68

Hi.

I found an error in your Custom SVG tool in Website Manager.

When uploading multiple complex SVG’s, they break each other.

Check this screen recording: https://streamable.com/3aypu8

Post count: 35449

Hi,

This situation appears because both SVGs you are using are using the same ID. The ID should be unique. https://i.imgur.com/8r1masd.png https://i.imgur.com/szwZvRV.png So, the online tool you are using to generate SVG elements should change the ID and not use the same one for more than one element.

Thank you!

Post count: 68

Ok, why don’t your system do that automatically? I am not technical? Else make an upload function for a SVG file?

What tool can I use to do this?

Post count: 68

I just made an app using ChatGPT that:

  • adds a random prefix to all IDs
  • updates ALL relevant references (url(#…), href/xlink:href, SMIL begin/end such as id.click, ARIA attributes, inline style, and <style> blocks)
  • can handle multiple <svg>…</svg> blocks in the same input
  • And it still does not work when uploading to Website Manager, the same problem.

Post count: 35449

Hi,

Our system cannot intervene over your custom code, that would mean modifying it and making it no longer work correctly.

As a test you can put the two svgs in a new post, if the ids are identical or the css applies to the same classes then the result will be as in the case try adding the svgs in the header svg section.

If you can please give me a link to the 2 svgs and I will try to help you with them.

Thank you!

Post count: 68
Post count: 35449

Hi,

I ran a test using the default WordPress theme with no plugins enabled. You can see the setup here: https://i.imgur.com/zFswd3n.png
.

I added the first four SVGs into a post, and the result is shown here: https://i.imgur.com/PKlh49s.png
. As you can see, only two out of the four SVGs are displaying correctly.

This confirms that the issue is not related to the theme or any plugins—it appears to be caused by the way the SVG files themselves are created or structured.

Unfortunately, since the problem persists even with a default WordPress setup, it’s outside the scope of theme support, and we won’t be able to assist further with this.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.