Block Editor snippets

Control blocks, patterns and editor features so writers get a focused, consistent editor.

Showing 25 snippets

Block Editor PHP Use the Classic Widgets Screen Bring back the classic Appearance > Widgets screen and Customizer widgets instead of the block-based widget editor. Beginner WP 7.1 Block Editor PHP Add a Custom Block Category Add your own category to the block inserter, ready to hold the custom blocks you build for a site. Beginner WP 7.1 Block Editor PHP Use the Block Editor for a Custom Post Type Switch a plugin's custom post type that opens in the classic editor over to the block editor. Beginner WP 7.1 Block Editor PHP Turn Off Drop Caps and Custom Typography Remove the drop cap toggle and custom letter spacing, text decoration and font style controls from paragraphs. Beginner WP 7.1 Block Editor PHP Set the Default Size for New Image Blocks Make new Image blocks use the Large size (or any registered size) instead of the full-size original. Beginner WP 7.1 Block Editor PHP Start New Posts With Default Content Pre-fill new posts with blocks or text, such as an introduction prompt and a call-to-action, so every post starts with your structure. Beginner WP 7.1
Want it without code?Our plugins do the heavy lifting, with settings, updates and support.
Browse plugins
Block Editor PHP Disable Gutenberg for Specific Post Types Selectively disable the block editor for specific custom post types while keeping it active everywhere else on your site. Beginner WP 7.1 Block Editor PHP Give a Post Type a Block Template Make every new entry of a post type start with a fixed set of blocks, and optionally stop editors adding or removing blocks. Intermediate WP 7.1 Block Editor PHP Remove Default Block Patterns from the Inserter Remove WordPress's built-in block patterns and the patterns it downloads from WordPress.org, so the inserter only shows your own. Beginner WP 7.1 Block Editor PHP Limit Heading Levels in the Heading Block Only offer H2 to H4 in the Heading block, so editors can't add a second H1 or tiny H6 headings. Intermediate WP 7.1 Block Editor PHP Limit Allowed Block Types by Post Type Restrict which blocks are available in the editor on a per-post-type basis, giving clients a focused, simplified editing experience. Intermediate WP 7.1 Block Editor PHP Remove Custom Colours and Font Sizes Make editors choose from your theme's palette and font sizes only, by removing the custom colour picker and size input. Intermediate WP 7.1 Block Editor PHP Register a Custom Block Pattern Category Add a custom category to the block pattern inserter so your site-specific patterns are grouped separately from core and plugin patterns. Beginner WP 7.1 Block Editor PHP Load Your Theme’s Styles in the Editor Make the block editor look like the front end in a classic theme, by loading an editor stylesheet. Beginner WP 7.1 Block Editor PHP Lock the Site Editor and Template Editing Hide the Site Editor and turn off template editing in the post editor, so clients can write content without changing headers, footers or templates. Intermediate WP 7.1 Block Editor PHP Turn Off the Block Directory Stop the block inserter suggesting and installing blocks from WordPress.org when a search finds nothing. Beginner WP 7.1 Block Editor PHP Remove the Openverse Tab From the Media Inserter Hide the Openverse library of free images from the block inserter's Media tab, so editors only use your own media. Beginner WP 7.1 Block Editor PHP Turn Off the Font Library Stop editors installing and uploading fonts through the Site Editor's font library, keeping your typography consistent. Beginner WP 7.1 Block Editor PHP Turn Off Fullscreen Mode in the Editor Open the block editor with the normal admin menu and toolbar visible, instead of WordPress's fullscreen mode. Beginner WP 7.1 Block Editor PHP Turn Off the Editor Welcome Guide Stop the "Welcome to the editor" pop-up appearing for new users and on new browsers. Beginner WP 7.1 Block Editor PHP Only Let Administrators Lock Blocks Remove the Lock option from the block toolbar for everyone except administrators, so editors can't lock or unlock blocks. Beginner WP 7.1 Block Editor PHP Hide the Code Editor From Non-Administrators Remove the "Code editor" option from the block editor for everyone except administrators. Beginner WP 7.1 Block Editor PHP Add a Custom Block Style Add your own style option, like "Brand outline" for buttons, to a core block's Styles panel. Beginner WP 7.1 Block Editor PHP Remove Built-In Block Styles Remove style options you don't want editors to use, such as the Rounded image style or the Plain quote style. Intermediate WP 7.1 Block Editor PHP Remove Embed Variations You Don’t Use Clean up the inserter by removing embed blocks for services you never use, such as Tumblr, Reddit or Crowdsignal. Intermediate WP 7.1

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only