Questions tagged [svg]
The svg tag has no summary.
70 questions
1 vote
1 answer
164 views
Fatal error after update 6.5 - wp-includes/media.php:2134 svg inline sizes equal 0
In several sites (not all) after updating to wp 6.5, I have the following error: Fatal error: Uncaught DivisionByZeroError: Division by zero in web/wp-includes/media.php:2134 Stack trace: #0 web/wp-...
1 vote
1 answer
210 views
How do I link an image in a svg file in wordpress?
I'm trying to use a svg file that contains a vector and an image, the problem however is that the linked image in the svg won't load. The vector part of the svg is loading however. I figure the ...
1 vote
0 answers
331 views
why I could not use <svg> data in WordPress additional css part
I was reading this article to customize the bullet lists (li tags) in my posts in a WordPress website. But when I want to add these CSS codes: li{ list-style-image: url('data:image/svg+xml,<svg ...
1 vote
0 answers
247 views
Undefined array key "width" in wp-admin/includes/image.php error when publishing post or page
When publishing a post or page that includes trusted SVG files in the content, WordPress spits out the errors Undefined array key "width" in wp-admin/includes/image.php and Undefined array ...
0 votes
1 answer
92 views
Customize all image captions
Is there anyway to add smth like a SVG to all image captions of my website? Smth like the camera logo under this photo.
0 votes
1 answer
104 views
Why isn't my SVG path rotating on scroll on iPhones?
I'm trying to get a path inside an inline SVG in the Header of my website to rotate when the user scrolls the page. It's a really neat feature, but it's not working on some iPhones. Here's the ...
1 vote
3 answers
4k views
Can't upload svg files in WordPress
I am facing the following issue while uploading any SVG file and sometimes face the same issue while uploading any image. "The server cannot process the image. This can happen if the server is ...
0 votes
1 answer
181 views
SVG Icon Code Support in WordPress Custom Html Widget? Not Working
I am Trying to Add SVG Icon Code in Custom HTML Widget, it is not working showing following error "There is 1 error which must be fixed before you can save.". How we can fix it without ...
0 votes
2 answers
830 views
Why are some SVG-images not visible in my footer?
On our website, we have a footer (built with WP-Bakery) that includes the typical information that is needed, plus there is a section that should show the different types of payment methods that we ...
2 votes
1 answer
1k views
How to remove SVG Files inline code of Wordpress Footer?
After the latest update of WordPress version 5.9, I saw that there was a svg files added at the bottom of the page. Can you please tell me, how to remove this? What's the use of it?
0 votes
1 answer
137 views
How to upload and style svg logo?
WP beginner here. I'm trying to upload an svg logo to my site. The logo can be accessed here. If you open it in the browser and inspect it, it should show the svg tags around the object. I've ...
0 votes
2 answers
471 views
download svg to png size image
I would like to have an svg downloaded from my site as a png. Searching I found this code and I must say that everything works. The site is a project that will only be viewed from mobile https://7c81b....
0 votes
1 answer
857 views
Replace custom SVG icons in Twenty Twenty-One
I was trying to investigate how to replace some icons of the parent theme with the child theme but I was not able to do it. I am trying to replace the SVG icons that are in the twentytwentyone\classes\...
0 votes
1 answer
1k views
How do I include SVG file used as featured image?
I'm new, can I use include() or get_template_part to load an SVG file uploaded as featured image directly in the HTML page? I need to animate the svg images, but i need to easily change the image on ...
0 votes
1 answer
1k views
SVG upload does not work
I have created an SVG with clickable areas to be used as landing page image, The size of the file is 4 MB. I cannot upload it, Wordpess says there is an error (no specifics). Size seems not to be the ...