Hi,
Firstly thanks for using my plugin.
Secondly, I haven’t done a huge amount of Multisite testing, but the times I have used it in Multisite, it has worked fine.
Additionally, you don’t need to be using classes if you are not inlining your SVG files, they can be used just like regular images.
Could you please provide links so I can inspect the pages?
Thread Starter
deuxis
(@deuxis)
And many more thanks for making the plugin, it’s very useful. Also thank you for a quick reply.
I don’t understand what do you mean by inlining. I am using them normally, and styling them to have the same colour as the text colour, and some size adjustments. The pages are 3dsu.eu and 3dsu.pl, the second one being the, well, second one. As you can see on the original site they are properly changed into SVG code, and grey and smaller as they should be. On the second one they are not.
I have advanced features enabled on both.
My pleasure 🙂
So the issue is that you are referencing external source images… you are calling them from the first site in the second.
Due to the nature of SVG and how this works, you need to host the files in the same domain.
As for “inlining”, that is part of the “advanced mode” features, where the SVG file will actually be rendered inline as SVG/XML code instead of in an IMG tag.
For your use case, you could just make the SVG the colour you want in your vector editor, then use css to set the size on your site. Unless you are modifying elements within the SVG itself separately, and you are just applying CSS to the image as a whole, you might as well just use it as an IMG tag… but that’s a separate use case and not necessary to focus on at this point.
If you upload your files to the new site, they will work.
Just to clarify, you can right click on the second site SVG files and inspect element, then in the console, you will see the errors.
Thread Starter
deuxis
(@deuxis)
Ohhh, thank you, I didn’t think about that. And I’ll probably just reupload them to the new site, I like styling the colour with CSS and the way inline SVG reacts to changing the size. (also styling two copies of the same page in different ways sounds like a bunch of issues waiting to happen the moment anyone tries changing anything)
My pleasure.
Fair enough, I personally only inline when using elements within. But I’m glad you’re using the core functionality of my plugin for your purpose 👍
Cheers
Ben