The plugin utilizes a script to clean up the SVG files. This cleanup process removes any malicious code present in the SVG files.
To allow certain XML tags and attributes, you can use the following code to permit new attributes and tags:
// XML TAGS
add_filter( 'esw_svg_allowed_tags', function ($tags) {
$tags[] = 'p';
$tags[] = 'info';
return $tags;
} );
// XML attributes
add_filter( 'esw_svg_allowed_attributes', function ( $attributes ) {
$attributes[] = 'src';
return $attributes;
} );
]]>
Hello,
Thanks for this great plugin!
I’m using this CSS snippet for adding external Font Awesome icons in headings, like H1 here:
h1:before {
content: "\f192 ";
font-family: "FontAwesome";
color: red;
}
Would it be possible to do the same with SVG icons uploaded in the Media Library?
I tried to add the icon’s URL for “content” but doesn’t seem to work.
My icon URL is something like this:
https://example.com/wp-content/uploads/2021/11/test.svg
Thanks!
]]>Hallo and welcome to version 2.0!
With 2.0 comes a new feature into our plugin. Now you can see your SVG File into the backend of the Media Libary!
Enjoy and update now!!
Here is a Changelog:
Version 2.0
Please write your Support request here.
Best Regards
Benjamin Zekavica