Sign in

SVG support for uploading Website logos

  • This topic has 5 replies, 3 voices, and was last updated 1 year, 6 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7189
    Avatar photokonstantin

    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 photoitips3727

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

    #7197
    Avatar photokonstantin

    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.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #7199
    Avatar photokonstantin

    😄 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
    konstantin 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.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.