I would like the change the menu setting on the header block when a user enables the Tatsu theme.
Is there any way to do that?
Here is the code I would use in hook_install for a module, is there a version of this for a theme:
$layouts = layout_get_all_configs('layout');
foreach ($layouts as $layout_name => $layout) {
foreach ($layout['content'] as $block_id => $block) {
if ($block['plugin'] === 'system:header') {
config_set('layout.layout.' . $layout_name, 'content.' . $block_id . '.data.settings.block_settings.menu', 'my-menu-id');
}
}
}
Recent comments
Oh the benefits of a new set of eyes.... I don't know how many times I've looked at that css and not spotted that! Mind you, in my defense, my eyes are over 70 years old (and obviously in need of...
How to over-ride grid-flexbox.css
thanks yorkshirepudding, i used the CSS Injector option with this code and it works .views-table caption { font-weight: bold; color: blue; font-size: 26px; }
How to change the format of the Views group title field?
@Ian Spotted the issue: Your selector has "1-wrapper" rather than "l-wrapper" (i.e. the numeral for one rather than lowercase L) Try: @media (min-width: 75em) { div.l-wrapper-inner.container....
How to over-ride grid-flexbox.css
@yorkshirepudding Yes I did flush the caches :) I've also used Firefox to inspect the element - which is where I get the "div.1-wrapper-inner.container.container-fluid" from. While hovering on that...
How to over-ride grid-flexbox.css
@DrAlbany Thanks, but at this stage I'm trying to limit the number of modules on the server... if all else fails I'll take a look at CSS injector.
How to over-ride grid-flexbox.css