Editing the Site Editor? Can I add more unit options?
-
I’m attempting to replace a site theme with a Twenty Twenty-Three child theme, and I’m finding that the theme editor seems to be limiting a lot of my capabilities. Rather than ask a whole bunch of questions at once, I’ll start with custom length units. The site editor has different length unit options for different block types, limiting the sizing options for many block types far more than is necessary.
I found a wp.org tutorial page for adding custom units to the block editor, but creating a functions.php with “custom-units” doesn’t seem to work for the site editor. I also found where to add custom units to the “spacing” section of theme.json (e.g. I added vmin and vmax). I can change the pre-named “fontSizes,” but “customFontSize” is a boolean, with no units options.
Can I, by editing theme.json, creating a functions.php file, or changing anything else, make the theme editor more flexible? Is there a resource that’ll help me with the various additional options that I could add?
The page I need help with: [log in to see the link]
- The topic ‘Editing the Site Editor? Can I add more unit options?’ is closed to new replies.