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
Backdrop has a 'CKEditor' module (installed by default) which provides a WYSIWYG experience. You can configure it in your text format of choice at /admin/config/content/formats.
WYSIWYG article editing?
Got it and working so far, with the "html body" approach. Thanks!
How to set custom CSS for custom field type?
Tried it in a few ways. When applied precisely as recommended, you can see the white background flash, then the image comes up. I guess, instead of body:not(.front) you need html body:not(.front)....
How to set custom CSS for custom field type?
I really don't want to get rid of the background image at the page (body tag) level though, I'd like to set this at the level of a multiline+image text field. In that case, try this: body:not(....
How to set custom CSS for custom field type?
Tried it in a few ways. When applied precisely as recommended, you can see the white background flash, then the image comes up. I also tried it this way: body:not(.front) { background...
How to set custom CSS for custom field type?