Home Forums WoodMart support forum SVG Issues in Visual Composer

SVG Issues in Visual Composer

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #133330

    JonasG
    Participant

    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

    #133338

    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

    #133346

    JonasG
    Participant

    Hello Elise,

    thank you for your responds.
    Unfortunately it’s still not working. We added these attributes without success.

    Best regards

    Jonas

    #133363

    Hello,

    Please provide the site admin access to the private area as well as page URL with the problem.

    Best Regards

    #133367

    JonasG
    Participant

    Hello,

    I attached them here:

    #133382

    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

    #133400

    JonasG
    Participant

    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.
    #133415

    JonasG
    Participant

    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.

    #133497

    Artem Temos
    Keymaster

    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.

    #133533

    JonasG
    Participant

    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

    #133537

    Artem Temos
    Keymaster

    Thank you for sharing the solution here!

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘SVG Issues in Visual Composer’ is closed to new replies.