Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By LewisNyman on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.0-beta5
Issue links:
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
Comments
To use non-svg file create a
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):
+1 for this. It works fine.
+1 for this. It works fine.
http://www.phponwebsites.com/
Does not work for multi-sites
I have the following in my install.settings.yml:
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?
Try adding forward slash.
Try adding forward slash.
Reinstall the theme
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: