Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

SVG support for uploading Website logos

  • #7189
    Avatar photo[anonymous]

    Hello!

    While I upload SVG image using Theme Settings – Website logo, I can see the uploaded image in the settings but not on the site. Are SVGs supported as a website logo?

    #7194
    Avatar photo[anonymous]

    Yes. Just upload into the Theme Settings > Website logo area.

    #7197
    Avatar photo[anonymous]

    Doesn’t work. I can see the uploaded image in the settings, but not on the site. Logo area is empty on the site.

    #7198
    Avatar photoBob

    No live example = no help, we are not magicians mate.

    #7199
    Avatar photo[anonymous]

    😄 Sorry Bob. I didn’t mean to think you as a fakir. Here is a video of how I see svg working in my site.

    #7202
    Avatar photoBob
    [anonymous] wrote:

    I didn’t mean to think you as a fakir

    🙂

    The height and width attribute is missing, I will check all themes and update them with the next Publii release (most probably end of this month).
    To fix it now,  open the navbar.hbs file ‎⁨(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME ▸ partials) and edit the logo as follows:

    <img src="{{@website.logo}}" alt="{{@website.name}}" height="{{@website.logoSize.height}}" width="{{@website.logoSize.width}}">
    

    This should help.