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

image_get_intermediate_size always returns false

Whenever media is uploaded, the media gets run through wp_generate_attachment_metadata(). The image_get_intermediate_size() function relies on wp_get_attachment_metadata() to ensure it has some kind of size data to work with. If the image metadata is modified by either customizations or plugins and is missing the thumbnail image size, image_get_intermediate_size() will return false for that image size as … Read more