diff --git a/themes/stanford_basic/stanford_basic.theme b/themes/stanford_basic/stanford_basic.theme index dff2e9730..198585bb5 100755 --- a/themes/stanford_basic/stanford_basic.theme +++ b/themes/stanford_basic/stanford_basic.theme @@ -144,6 +144,9 @@ function stanford_basic_page_attachments_alter(array &$attachments) { * Prepares variables for the html.html.twig template. */ function stanford_basic_preprocess_html(&$variables) { + $favicon = theme_get_setting('favicon') ?: []; + $variables['custom_favicon'] = isset($favicon['use_default']) && !$favicon['use_default'] && !empty($favicon['path']); + try { $variables['is_front'] = \Drupal::service('path.matcher')->isFrontPage(); } diff --git a/themes/stanford_basic/templates/html.html.twig b/themes/stanford_basic/templates/html.html.twig index 79eca4b7c..1658df871 100755 --- a/themes/stanford_basic/templates/html.html.twig +++ b/themes/stanford_basic/templates/html.html.twig @@ -34,21 +34,24 @@