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 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.
Question: What should happen if a user tries to visit a block template or template part folder or file directly? Is there a potential security issue? Answer: If you attempt to visit the folder then you may get a 403 or a 404 from the website hosting. If you visit a file then you’ll probably…
Question: What filters are run on the server that may allow me to intercept server side rendering? Answer: The best thing to do is to find which filters are run using a tool such as Query Monitor or oik-bwtrace then read the source code, or just read the source code.
Question: My theme.json file is getting very large. What can I do? Answer: It’s not yet possible to use multiple configuration files, nor can theme.json be filtered. There are plans to support extensibility, but not in version 1.
© Copyright Herb Miller, Bobbing Wide 2021