Allow theme developers to add the default favicon filename to the theme's .info.yml

Created on 6 March 2019, over 6 years ago
Updated 2 June 2023, about 2 years ago

core/includes/theme.inc

          if (file_exists($favicon = $theme_object->getPath() . '/favicon.ico')) {
            $cache[$theme]->set('favicon.url', file_url_transform_relative(file_create_url($favicon)));
          }
          else {
            $cache[$theme]->set('favicon.url', file_url_transform_relative(file_create_url('core/misc/favicon.ico')));
          }

- png favicon is supported by all browsers
- jpg and gif is also supported, but those are not the best formats for favicon
- svg is not supported by all browsers, yet
- it is easier to create a (nice) png file than ico
- it is already possible to use png favicon in Drupal, but only ico is supported as a favicon file in the theme folder

proposed change:
1. search for favicon.png
2. search for favicon.ico
3. use Drupal default

โœจ Feature request
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Themeย  โ†’

Last updated about 8 hours ago

Created by

๐Ÿ‡ญ๐Ÿ‡บHungary pasqualle ๐Ÿ‡ญ๐Ÿ‡บ Budapest

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024