Question: I managed to find a block that supported setting of the margin, but which one? Answer: Site Title and Site Tagline support custom margin. It’s defined in their block.json files. Spacing for the Site Tagline block Here we can see that the Site Tagline block supports Spacing settings for Padding and Margin. The default…
Question: Does settings.color.custom false disable colour controls? Answer: It doesn’t disable the color palette but does prevent the user from choosing a custom color.
Question: My current theme has popups, slide-ins and sticky headers. How do I do these? Answer: Some of this is plugin territory.
Question: Can I use CSS grid to make blocks appear inline? Answer: You can do it using CSS flex box. So it should be possible using grid as well.
Question: Can I style the table block just by using Global Styles and/or the theme.json file? Answer: I haven’t the foggiest idea how to do this. I cheated by copying some CSS into the theme’s stylesheet.
Question: I want to eliminate the white space around full width blocks and between groups. How do I do this using Global Styles? Answer: The theme.json file supports the setting of padding. It doesn’t support setting of margins. If you need to reset margins then you’ll have to write some CSS.
To test your Global Styles in theme.json create some dummy content and view it in the editor and the front end.
To extend core blocks use WordPress APIs to provide alternative block styles or hook into JavaScript filters such as blocks.registerBlockType.
Use some PHP code to hook into block registration and override the callback logic for a block’s Server Side Rendering.
Question: How do I overwrite inline / just in time ( JIT ) CSS? Answer: This may be addressed in a future version.
Question: How do I write CSS, for the whole site or just a part of it? Answer: The main idea is that it should no longer be necessary to write CSS as Global Styles will cover it.
#fse-outreach-experiment #unanswered 18 agencies answers better blocks bug call #5 capabilities child theme color contributors could-do-better CSS custom customizer custom template dates development display:flex display:grid Dot empty featured image filter filters FREE GDPR global-styles grid Gutenberg handbook inline keyboard look and feel margin margins Mega Meetup menus migration mkaz navigation news nightly padding page builder paragraph performance phases plans plugins poem post edit post formats privacy process Publish query quote requirements reusable reusable block scope search server shortcode shortcuts Site Editor site icon size sort SSR stages statistics table template-part template parts templates theme.json themers Universal WooCommerce WordCamp Europe
© Copyright Herb Miller, Bobbing Wide 2021