• Hi,

    How can I insert a SVG logo? I already inserted a code in the child-themes function.php to allow the upload of SVG images in general.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi @ypanesa, this snippet might help you to add your SVG logo : https://www.themesandco.com/snippet/creating-a-animated-svg-based-on-your-site-title/
    Looking forward to reading your feedback about this

    Thread Starter Ypanesa

    (@ypanesa)

    Oh, that’s cool!

    Meanwhile I’ve learned, that we should not use SVG, because they are not safe and it is exactly because of that, that WP does not allowed the upload of SVGs.

    What do you think?

    That snippet is cute, but it doesn’t answer Ypanesa’s question. The snippet inserts some animated text in the location where the site’s LOGO should go. This means you can’t use your own logo…you have to use Customizr’s animation of some other font that is not a logo.

    So, the question remains: How do we place our own SVG logo file in the logo location? For some reason, Customizr will only accept png, jpg, and gif formats, even after you create the exception in WordPress allowing WordPress to accept SVG files.

    Also, why is there no option to just paste an image file’s address for an image file that is already loaded in the site’s WordPress media library? The WordPress media library is quite useful, but Customizr seems to want us to re-load all images through it own panel (and this creates redundant copies of all those images in the media libray, while it’s at it).

    Best practice is to use the media library, but Customizr doesn’t enable that.

    Theme Author presscustomizr

    (@nikeo)

    Hi @b-cat

    SVG format : that’s a good point, I agree.
    Support for SVG has been added in version 3.1.19 in media upload.
    Before that you can use the ‘tc_logo_src’ or the ‘tc_logo_img_display’ filter to add your svg.

    Using an image from the media library : that’s an intial choice of conception. I agree that it could have been handled better with the media library. Unfortunately, changing the way logo is uploaded in future version could lead to backward compatibility issues and I prefer to stick with the current logo upload.

    Hope this helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SVG scaleable images’ is closed to new replies.