Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-beta5
Description: 

If a custom logo is not specified, Drupal will search in the active theme for a default logo image file. This has been changed from a PNG file to a SVG file.

Themes that were providing a default logo.png will need to provide a logo.svg. PNG logos, or other image formats, can always be used by uploading the logo as a custom logo.

Themers can create extra custom settings in their themes to give support to non-SVG default logos.

Consider that SVGs will not always have height and width dimensions, and that adding an SVG file with no dimensions could affect the styling of your theme.

Impacts: 
Site builders, administrators, editors
Themers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done

Comments

Anonymous’s picture

To use non-svg file create a file in your theme in THEME_NAME/config/install/THEME_NAME.settings.yml and paste this code in it BEFORE installation(or re-install the theme so the config get's loaded):

logo:
  path: 'themes/THEME_NAME/logo.png'
  use_default: false
phponwebsites’s picture

+1 for this. It works fine.

joegl’s picture

I have the following in my install.settings.yml:

logo:
  path: 'themes/*theme*/logo.png'
  use_default: false

It fails to load because it writes the following URI: htttp://mysite.com/themes/*theme*/logo.png

Our sites are on a multi-site, so the URI to the theme is: http://mysite.com/sites/*sitename*/themes/*theme*

Is there another approach which dynamically identifies the theme folder?

Anonymous’s picture

Try adding forward slash.

ramadan35’s picture

You need to reinstall the theme or add the settings before installing the theme and make sure the path is correct

In my case I am using bootstrap as a base theme:

logo:
  path: 'themes/custom/THEMENAME/logo.png'
  use_default: false