SVG not working correctly?

Hi,

I always use SVG Support plugin so I can use SVG's in WP. However, for some reason SVG's are not working. 

Normally, I would assume this to be an issue with the plugin however I am using the same version on numerous other sites both live and local fine.

The weird thing is without the plugin activated I can still use SVG image for my logo set in the BeTheme Options. Usually this is not possible due to WP core not supporting SVG.

Does this theme have any functions etc that are being used for SVG if not any idea why my SVGs are not displaying in Media library and unable to be selected as usual?

Thanks

Comments

  • Hi,

    BeTheme supports svg logos only. Please switch to default WP theme and check if svg images does not work as well when default theme is active.
  • edited November 2016
    Hi,

    I think because you have enabled SVG for only the logo and I am trying to enable SVG for the whole site, it is causing a conflict. 

    I switched back to WP 2016 theme and all my uploaded SVG are still not visible. But if I upload new ones while in that theme it works fine. But when using this theme I am unable to use SVG images through the page. I really need SVG support and this is the only theme that causes issues.

    How can I disable your script that enables logo SVG?

    I will enable it via a plugin SVG Support.
  • So if you want to disable our script responsible for SVG logo, you need to modify includes/include-logo.php file.
  • Thanks, how do you I disable it. e.g. What can I remove for a child theme page so everything works accept SVG support?


  • So I found commenting out the below (line 5310 - very bottom) fixed it for me in /betheme/muffin-options/theme-options.php :

    // $existing_mimes['svg'] = 'font/svg';

    I tried copying this into my child theme and doing it but wouldn't work. Can you explain how I can do this so future update don't break it?

  • If function where this code is contain function_exists then it could be moved to functions.php file of child theme. Otherwise, you need to make edits in parent theme. For more details about function_exists and child theme, please visit https://codex.wordpress.org/Child_Themes
  • edited July 2018
    svg is not display in Image element on visual composer. How can i fix this issue?1

    Check this page. https://goodera.dev.renure.com/us/about this page has 7 svg images. But its not showing on this page. Just guid me how can i fix this issue. Is that any y server side issue?
  • What's the issue?
    Please describe it more, I see that everything is ok.
    Make some screenshots, it'll help me a lot.
    Thanks.
  • Okay,

    Check this video. 

    And plz dont suggest me unnecessary suggestion. Because of this forum procedure take lots of time. And i do not have more time. Give me proper solution. So i can fix that.

    Site Url = http://discovertemplate.com/

    And you can text it on your server. Because of i try it in may server i am facing same issue.
  • Hi,
    Upload this image through media and copy link to it:http://prntscr.com/kgj0po
    Then, while editing Single Image, change the image soource to external link and paste the link
    you copied from media http://prntscr.com/kgj165
    It will change the image.

    Thanks.
  • Its not proper solution. Currently i am using icon box element. And there no option in icon box for external url.
  • You can insert image url in Icon Box through Muffin Builder.
    VC is not allowing to do this unfortunately.

    Is my previous tip working?
    If not, please disable alll of the plugins(without VC) and check again.

    Thanks
Sign In or Register to comment.