$_POST[] variable is inaccessible in block editor. Is there any workaround?
$_POST[] variable is inaccessible in block editor. Is there any workaround?
$_POST[] variable is inaccessible in block editor. Is there any workaround?
Block Style Not Applying in Editor
In my case the theme.json was set up correctly and behaving properly. There was an errant editor stylesheet being loaded that shouldn’t have been there adding font-family:sans-serif; to .editor-styles-wrapper which was overriding the the “var(–wp–preset–font-family–greyclif)” declaration.
Modifying other core editor panels besides Featured Image in the block editor
After studying documenation and this documentation and this stackoverflow question I came up with a solution. We could use wp.data.select(‘core/editor’).getCurrentPost().categories instead of wp.data.select(‘core/editor’).getEditedPostAttribute(‘categories’). Both should work. /** * Show tags panel only for certain category using ID */ const { select, dispatch, subscribe } = wp.data; window.onload = (() => { const categoryId = 9; … Read more
How to show available Typography settings by default in Gutenberg Block Editor?
How to add images inside an item of a list in Gutenberg
Block variations are not block types, you need to add a group block, and give it the necessary attributes. As for what those attributes are, you’re the one who chose them when you registered the block, and it looks like there’s even a function that checks for it: attributes: { tagName: ‘dialog’, className: ‘carousel-modal’, namespace: … Read more
The quickest solution I found was to target my body ID on the front end so the back end does not apply this to .editor-styles-wrapper. What I end up with is #ContainerID .bg which seems to function properly.
TT3 make img in 2nd column same height as content of 1st column