If GravityKit blocks are not visible in the block editor inserter
If you cannot find GravityKit blocks when using the WordPress block editor ("Gutenberg"), this guide helps you check the most common cause and fix it quickly.
What you see
- You open the block editor.
- You search for GravityKit or GravityView blocks.
- Nothing appears in the block picker.
Most common reason? The website theme.
Your WordPress theme is limiting which blocks are allowed.
When this happens, GravityKit blocks are hidden, even though the plugin is active and working.
Quick check
- Switch to a default WordPress theme (for example, Twenty Twenty-Four).
- Open the same page in the block editor.
- Search for the GravityKit block again.
If the blocks appear after switching themes, the issue is your original theme settings, not GravityKit.
How to fix it
Ask your developer (or theme provider) to allow GravityKit blocks in the theme block allow-list. Point them to this article.
If you need support
When contacting support, include:
- Your active theme name.
- A screenshot of the editor search results (showing missing blocks).
- Whether the blocks appear after switching themes.
Adding support for GravityKit add-ons
If your theme uses an allowed_block_types_all allow-list, add GravityKit blocks to the allowed array.
This is example using GravityView blocks:
add_filter(
'allowed_block_types_all',
function( $allowed_block_types, $block_editor_context ) {
if ( ! is_array( $allowed_block_types ) ) {
return $allowed_block_types;
}
$allowed_block_types[] = 'gk-gravityview-blocks/view';
$allowed_block_types[] = 'gk-gravityview-blocks/entry';
$allowed_block_types[] = 'gk-gravityview-blocks/entry-field';
$allowed_block_types[] = 'gk-gravityview-blocks/entry-link';
$allowed_block_types[] = 'gk-gravityview-blocks/view-details';
return array_values( array_unique( $allowed_block_types ) );
},
10,
2
);
Developer debugging
For GravityView blocks, open the block editor, then open browser DevTools and run:
wp.blocks.getBlockType('gk-gravityview-blocks/view')
wp.data.select('core/block-editor').canInsertBlockType('gk-gravityview-blocks/view')
wp.data.select('core/block-editor').getSettings().allowedBlockTypes
wp.data.select('core/block-editor').getSettings().templateLock
wp.data.select('core/editor').getCurrentPostType()
How to read the results:
getBlockType(...)returns an object: The block is registered.canInsertBlockType(...)returnsfalse: The editor context is blocking insertion.allowedBlockTypesis an array that does not includegk-gravityview-blocks/view: A theme or plugin allow-list is excluding GravityView blocks.templateLockis'all'or'insert': The current template/post context restricts block insertion.