Change the default theme
This commit is contained in:
parent
d74bb29e10
commit
b10ac4ef8c
13 changed files with 229 additions and 4 deletions
18
web/themes/custom/opdavies/opdavies.theme
Normal file
18
web/themes/custom/opdavies/opdavies.theme
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Functions to support theming in the Tailwind CSS theme.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK().
|
||||
*/
|
||||
function opdavies_preprocess_block(&$variables) {
|
||||
if ($variables['base_plugin_id'] == 'system_branding_block') {
|
||||
$variables['site_logo'] = '';
|
||||
if ($variables['content']['site_logo']['#access'] && $variables['content']['site_logo']['#uri']) {
|
||||
$variables['site_logo'] = str_replace('.svg', '.png', $variables['content']['site_logo']['#uri']);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue