Как расширению (WebExtensions) получить favicon сайта?

В chrome, кажется, это можно сделать так chrome://favicon/https://gmail.com

Что на счёт firefox? Не хочу запрашивать разрешение на доступ к всем сайтам, для того, что бы вычленять из них favicon, хочу брать иконки из кэша.

Не отображается favicon в яндексе?

Столкнулся со следующей проблемой: favicon на сайте homeasking.com отлично отображается в браузере, в различных сервисах google (например, в веб-мастере), но в яндексе не отображается. В веб-мастере яндекса пишет, что “Файл favicon не найден”. Заказывал уже 5 проверок, но результат все тот же. Помогите, пожалуйста, понять в чем проблема.

Using MYTHEME_page_attachment_alter does not alter the favicon

Based on other similar stackexchange questions and documentation, I’ve implemented the following in the MYTHEME_page_attachment_alter function in MYTHEME.theme file to change the favicon based on the url (inside a condition statement):

    foreach($  page['#attached']['html_head_link'] as $  k => $  v) {         if (array_key_exists('rel', $  v[0]) && $  v[0]['rel'] == 'shortcut icon') {             unset($  page['#attached']['html_head_link'][$  k]);             $  page['#attached']['html_head_link'][$  k] = array(                 array(                   'rel' => 'shortcut icon',                   'href' => '/themes/fu/favicon_urbana.png',                     'type' => 'image/png',                 ),             );         }     } 

Using Kint::dump($ page) confirms that the shortcut icon is indeed updated. Why then will the tab for the page not show the updated favicon? I’ve cleared the cache, ran drush cr multiple times, etc yet the page continues to show the theme’s favicon.

Am I missing something? Any advice would be greatly appreciated.

On a side note, we had this working successfully in Drupal 7 in MYTHEME_html_head_alter() and I am migrating this to Drupal 8.

How to debug incorrect favicon showing on home page in Drupal 8 custom theme?

I’m working on a Drupal 8 site with a custom theme that I didn’t code. The site is using the metatag: favicons module to control the favicons. The favicon seem to work correct on all except the home page, which has the default Drupal “Drop” icon. You can see the site here [Site no fav][1]. I am not sure how to begin debugging this since the behavior is not causing an error and the favicons work on the rest of the pages. I assume this has to be some sort of misconfiguration, somewhere, but I’m not sure if I should be looking in template files, something in the admin UI, or where exactly. Any help/guidance appreciated.

Update: The issue is not a local cache issue, as it was brought to our attention by an external user and happens in Firefox and Chrome.

Adding a favicon in magento 2.3.0 manuelly – it just appears in firefox

According to devdocs of magento 2.3.0 I tried to add a favicon manuelly.(https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/favicon.html)

Attempt 1:

/magento2/app/design/frontend/Magento GJ/theme-GJ/Magento_Theme/layout => here goes the default_head_blocks.xml file

<?xml version="1.0"?>  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">     <head>         <link src="Magento_Theme::favicon_32x32.png" rel="icon" type="image/x-icon" sizes="32x32"/>     </head> </page> 

/magento2/app/design/frontend/Magento GJ/theme-GJ/Magento_Theme/web => here goes the favicon_32x32.png file

=> This works only in Firefox!

Attempt 2:

Then I tried just for fun to add in the root directory my own favicon.ico. /magento2/app/design/frontend/Magento GJ/theme-GJ/Magento_Theme/

=> This works for Safari, Chrome and Edge. The IE does not work.

Attempt 3:

According to the magento 2.3.0 bug to add a favicon over the backend I solved this issue also:

Magento 2.3 favicon and logo upload does not take hold

Then I tried to upload my favicon. => All browsers can handle the favicon.

I want to know why the first attempt does not work for all browsers? – I am at a loss :/

How do I get the path of the favicon in a multisite?

I have a multisite website with multiple themes,each contains favicon. I have to show the favicon from the active theme in website.

Admin page shown the favicon from admin theme or if favicon is not set its shows the default icon (misc/favicon.co) whereas the website foranonymous users doesnot show the favicon.

With reference to the existing issues in Drupal exchange it can be managed by the following code in a custom module.

/*  * Implements hook_html_head_alter  *//* function mymod_html_head_alter(&$  head_elements) {    global $  base_url;    $  default_favicon_element = 'drupal_add_html_head_link:shortcut icon:' . $  base_url . '/misc/favicon.ico';    unset($  head_elements[$  default_favicon_element]); }  function mymod_init() {   global $  base_url;   $  favicon_uri = $  base_url .'/'. drupal_get_path('theme',$  GLOBALS['theme']).'/favicon.ico';   if (!file_exists($  uri)) {     $  favicon_uri = $  base_url .'/'.drupal_get_path('theme', 'mytheme100').'/favicon.ico';   }   // Specify new favicon location   $  element = array(     'rel' => 'shortcut icon',     'href' => $  favicon_uri,   );   drupal_add_html_head_link($  element); } 

But since I have used hook_init its not a better method.I have tried out the same in theme’s template.php file with hook_html_head_alter()

    // Search the head elements for the Favicon global $  base_url;    $  favicon_uri = $  base_url .'/'. drupal_get_path('theme',$  GLOBALS['theme']).'/favicon.ico';   if (file_exists($  favicon_uri)) {print"<br>iff";     $  favicon_uri = $  base_url .'/'.drupal_get_path('theme', 'mytheme100').'/favicon.ico';   }    foreach ($  head_elements as $  key => $  element) {     if (!empty($  element['#attributes'])) {       if (array_key_exists('href', $  element['#attributes'])) {         if (strpos($  element['#attributes']['href'], 'misc/favicon.ico') > 0)          {           // Change the URL           $  head_elements[$  key]['#attributes']['href'] = $  favicon_uri;            // Or, delete the favicon link entirely           //unset($  head_elements[$  key]);         }       }     }   } 

This code didn’t show the favicon. Any help will be appreciated.