Skip to main content

Questions tagged [theme.json]

The tag has no usage guidance.

0 votes
0 answers
20 views

Adding features to Gutenberg without theme.json

I am using a non-block theme for my website and am using Gutenberg for writing posts. I want to extend Gutenberg's functionality by adding the image lightbox feature. So I added a theme.json file to ...
Ryan's user avatar
  • 1
2 votes
1 answer
86 views

Override base Gutenberg block default spacing in child theme's theme.json

I am trying to change the default top spacing (margin) for the Embed block used in Gutenberg. I noticed that for some reason, the default setting is .wp-block-embed { margin: 0 0 1em; } which ...
Dandry's user avatar
  • 121
0 votes
0 answers
98 views

Gutenberg - Shadow settings not available (theme.json)

I registered shadows in my theme.json, but the setting options to add the shadows to Blocks doesn't show in the Gutenberg Editor. Only the presets are available as variables in my source code. I have ...
Dominik's user avatar
0 votes
0 answers
16 views

where the setting is stored in FSE, not theme.json

I added a custom font to the TT4 theme via theme.json. I'm not able to see the font name when I go to Editor>Styles in Typography I cannot see the font. But once I go to my host and rename a folder ...
H KH's user avatar
  • 1
0 votes
2 answers
199 views

Add fontFamily object to theme.json

I have an FSE-related question I'm trying to add a font to the 2023 theme but it's not showing in Gutenberg editor. In theme.json, in the "settings.typography.fontFamilies" section, I added ...
Joshua JJ S's user avatar
2 votes
1 answer
246 views

Set a default overlay color for the Core Cover block in theme.json

I would like to know if it is possible to set a default Overlay color for the Core Cover block using theme.json, so that when a new Cover block is added, that Overlay color is pre-set rather than ...
WebElaine's user avatar
  • 9,485
2 votes
1 answer
835 views

Responsive rules with block themes and theme.json

I’m learning about block themes for the first time and I’m not clear on how responsive layouts are achieved. For example, let’s say I want a paragraph to use red font when screen width is less than or ...
learningtech's user avatar
0 votes
1 answer
310 views

Theme.json: styles.typography.FontFamily renders as default font in front end but not editor

The following theme.json settings work as expected on the front end: var(--wp--preset--font-family--greyclif) is defined for the "font-family" in the main styles in the body{} tag, and any ...
StudioAl's user avatar
  • 464
1 vote
1 answer
132 views

Problem with spacing sizes in theme.json

I often use the following code in theme.json to define predefined spacing: "spacingScale": { "steps": 5 }, "spacingSizes": [ { "size": "min(...
Dominik's user avatar
  • 11
0 votes
1 answer
219 views

Unload templates; disable parent Template Parts using only "theme.json"

I'm currently creating a child theme in WordPress and I'm having trouble with template parts and custom templates from parent theme. In particular, I want to disable some of the template parts ...
Vladan's user avatar
  • 101
1 vote
0 answers
72 views

Theme.json_ Set default columns for gallery

I want to set a default number of columns for the gallery block within the theme.json-file. Is that possible? I couldn't find anything regarding this. I tried some things under settings "blocks&...
Fou Rorty's user avatar
1 vote
1 answer
169 views

theme.json is altering Group block HTML

I am creating Blog within the existing site which will have completely different look, styles, features and functionalities. I need theme.json only on the Blog pages, but the problem is that theme....
Tahi Reu's user avatar
  • 298
1 vote
2 answers
932 views

Is there a way to add background-image to theme.json?

I thought the following would work, but it doesn't. I can't find a firm confirmation if Gutenberg allows the following: "styles": { "color": { "backgroundImage": "...
Marc P's user avatar
  • 513
3 votes
1 answer
794 views

Where are the full site settings stored?

When making changes in the full site editor, where are the settings actually stored? When searching for this I get a gazillion results saying the settings are stored in theme.json, but this can't be ...
Arete's user avatar
  • 318
0 votes
1 answer
86 views

How to add color icons to front of custom block color palettes

To understand what I am asking, if you look at my attachment... ...you will see towards the far right, that both the text and background words, have empty circles with a line going across them. I ...
klewis's user avatar
  • 867

15 30 50 per page