Create a block variation of list elements

Since I am working with block attributes, I had to also define my attribute within my block.json file… block.json “attributes”: { “listOrdered”: { “type”: “boolean”, “default”: false } Now with that set in place, I can now run npm start, and see my block variant working well in wp-admin edit page. It allows me a … Read more

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

Background image in theme.json is not yet supported In your theme.json file, you can define a CSS class name for the element that you want to add the background image to. For example: “styles”: { “hf-bg”: { “backgroundColor”: “#ffffff” } } In this example, we’ve defined a style called hf-bg that sets the backgroundColor property … Read more