SVG Issues in Visual Composer
-
Hey,
currently we are facing an issue with the .svg icons. They wont be displayed if we use them in the WP Bakery Visual Composer Widgets.
It’s quite interested because we can use svgs on any other site and integrate them. As you can see there are some tests. I shared the URLs in the private area.
Screenshot #1:
It’s not working when we use it in a Visual Composer widget like this.
https://prnt.sc/ogou4p
Screenshot #2
But its working when we just integrate them normal via html:
https://prnt.sc/ogotkw
We tried already to deactivate the plugins but its still not working.
I’m looking forward to hear from you.
Best regards,
Jonas
Hello,
You need to open your SVG icons file with some editor like Sublime Text or default system text editor and add width=”31″ height=”40″ attributes to your <svg>
tag like it is shown: http://prntscr.com/m4n0qw
Then you will need to re-upload your icons in WordPress Dashboard.
Best Regards
Hello Elise,
thank you for your responds.
Unfortunately it’s still not working. We added these attributes without success.
Best regards
Jonas
Hello,
Please provide the site admin access to the private area as well as page URL with the problem.
Best Regards
Hello,
I attached them here:
Hello,
Please check the second pair of credentials I cannot login. Test the WP Bakery page builder with the image I attach. Which element are your trying to add SVG to?
Best Regards
I attached a file and hope you get what I meant 😉
Your board have some html mistranslatings – even I use the “code”-Feature.
Attachments:
You must be
logged in to view attached files.
They are valid.
I just changed the password now for you. Attached you will find the new password which shouldnt make problems anymore with html.
It seems that file_get_contents
function for URLs is disabled on your server. You need to contact your provider and ask to enable this option.
Hey Artem,
thanks for you reply and hint. I just checked the error logs and found out that my hoster has an built-in solution to protect the website.
After deactivating the password protection it seems to work.
If anybody else got a error like this or similar one, this might help.
PHP message: PHP Warning: file_get_contents(URL/uploads/2017/06/cellphone.svg): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
Best regards,
Jonas
Thank you for sharing the solution here!
The topic ‘SVG Issues in Visual Composer’ is closed to new replies.