WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] [Request] Easy snippet for uploading SVG icon in header (5 posts)

  1. J123456
    Member
    Posted 3 months ago #

    It would be great if someone knowledgeable in php could do this.

    I have added a function (copy/paste job from another forum) to the functions.php of my child theme that allows me upload SVGs via 'Media >> Add New' but that doesn't allow me to put it in the header through customizr.

    I have seen a snippet creating an animated svg but all I would like is a static svg for a logo which could be uploaded through the (very easy) Customiz'it menu. (SVGs are good for this!)

    Thanks

  2. ElectricFeet
    Member
    Posted 3 months ago #

    I tried but failed. Sorry!

    SVGs a great for where you need scaling, but they are not supported in IE8 and you need to jump through hoops (as yet unknown) to get them to work here.

    The question is: in this situation, where the logo is not being scaled (you can even select the option to make sure it never goes beyond 250x100px), is it really needed?

  3. J123456
    Member
    Posted 3 months ago #

    Thanks for trying.

    The SVG just looks clearer. The image is a png and dimensions are 250x82px. Maybe I need to go back and look at converting it again using some different settings.

    Interestingly the actual image file looks sharp if you view it using the image URL but when it's on the page it looks slightly blurry.

    I'll do some more digging.

    Cheers,

  4. d4z_c0nf
    Member
    Posted 3 months ago #

    Anyway svg form isn't supported for the customizr logo.

  5. J123456
    Member
    Posted 2 months ago #

    So it was a simple fix after all:

    For anyone else who finds that their logo image is always slightly fuzzy or blurred in customizr, my problem turned out to be the zoom on my browser!

    I accidentally discovered that my browser was zoomed in slightly from normal... I reset it and the logo is as it should be.

Reply

You must log in to post.

About this Theme

About this Topic