Home / Forums / WoodMart support forum / SVG Issues in Visual Composer
Home › Forums › WoodMart support forum › SVG Issues in Visual Composer
SVG Issues in Visual Composer
- This topic has 10 replies, 3 voices, and was last updated 6 years, 3 months ago by
Artem Temos.
-
AuthorPosts
-
July 18, 2019 at 9:02 am #133330
JonasGParticipantHey,
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/ogou4pScreenshot #2
But its working when we just integrate them normal via html:
https://prnt.sc/ogotkwWe tried already to deactivate the plugins but its still not working.
I’m looking forward to hear from you.
Best regards,
Jonas
July 18, 2019 at 10:00 am #133338
Elise NoromitMemberHello,
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
July 18, 2019 at 10:27 am #133346
JonasGParticipantHello Elise,
thank you for your responds.
Unfortunately it’s still not working. We added these attributes without success.Best regards
Jonas
July 18, 2019 at 11:17 am #133363
Elise NoromitMemberHello,
Please provide the site admin access to the private area as well as page URL with the problem.
Best Regards
July 18, 2019 at 11:23 am #133367
JonasGParticipantHello,
I attached them here:
July 18, 2019 at 12:34 pm #133382
Elise NoromitMemberHello,
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
July 18, 2019 at 1:33 pm #133400
JonasGParticipantI 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.July 18, 2019 at 2:57 pm #133415
JonasGParticipantThey are valid.
I just changed the password now for you. Attached you will find the new password which shouldnt make problems anymore with html.July 19, 2019 at 5:59 am #133497
Artem TemosKeymasterIt seems that
file_get_contentsfunction for URLs is disabled on your server. You need to contact your provider and ask to enable this option.July 19, 2019 at 8:51 am #133533
JonasGParticipantHey 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 UnauthorizedBest regards,
Jonas
July 19, 2019 at 9:16 am #133537
Artem TemosKeymasterThank you for sharing the solution here!
-
AuthorPosts
The topic ‘SVG Issues in Visual Composer’ is closed to new replies.
- You must be logged in to create new topics. Login / Register