There are several ways to add a block to your post or page from the admin screen of the WordPress block editor when you are editing your post or page.
You can use the Block Inserter + icon to add a block. You can also use a shortcut slash command to quickly add blocks or use the More options on any of the block’s toolbar to add a block. You can also move blocks or search for a block in your post or page.
There are three ways to add a block using the + icon (also called the Block Inserter).
Click on the Block Inserter + icon in the top toolbar in the WordPress block editor.
You can find a list of all the blocks available in the WordPress block editor. The most frequently used blocks are listed at the top (based on your Preference settings). Hovering over each block will show you a brief description and preview of the block.
You can scroll down the list to find blocks in categories, like Text, Media, Design, Widgets, Layout, Theme, or Embeds, You also find third-party blocks from installed plugins.
Once you find the block, drag and drop it into the block editor.
Block Patterns are a collection of predefined blocks that you can insert into pages and posts and then customize with your own content. Using a Block Pattern is an easy way to create beautiful layouts that combine different blocks to produce professional designs.
You can open the Patterns tab to view collections of patterns within a specific category like Featured, Call to Action, Pages, and so on, or click the Explore all patterns button at the bottom of that section to open the patterns in a new, larger, window.
Click on any pattern once and it will be added to your page at the location of your cursor.
The media tab allows you to view and add to the page images you have used, additionally, you can also view free media content from Openverse. You can also open your media library using the button at the bottom of the tab.
if you have synced patterns, you will see Synced patterns tab in a form of an icon as shown below.
When you click on the tab you should be able to view and add to the page all the synced patterns you have on the site.
WordPress 6.3 renamed Reusable Blocks to Patterns. A synced pattern will behave in exactly the same way as a reusable block.
Click on the Block Inserter + icon to the right of an empty block. If the + icon isn’t displayed first click on the placeholder text.
Clicking the Block Inserter + icon will open a modal window with a list of the most frequently used blocks you can also search for a block you would like to use. You can click on top of the block to want to use.
You can also press the Enter/Return on your keyboard after selecting a block to create a new empty block, and click the + Block Inserter to the right of the empty block.
Select a block from the list or click on the “Browse all” button to get a list of all the blocks available in the WordPress block editor.
When you pick the option to browse all, a larger window of the blocks available will opened.
When you hover over the gap between two blocks, you will notice a horizontal blue line appear with a Block Inserter + icon. You can click on this icon to open a modal window with a list of the most frequently used blocks.
You can quickly add a block to your post or page using the slash command. This shortcut will help with your writing flow with fewer interruptions searching for a block.
Begin by adding a new paragraph block by pressing Enter or Return on your keyboard.
Then hit the forward-slash (“/”) key followed by the block name. For example: /image
or /heading
.
Finally, on any selected block’s Block toolbar, click on the three-dot icon and choose “insert before” or “insert after” to add a new block before or after the selected block.
You can easily add blocks within blocks that allow nesting such as Group block, Row block, or Stack block.
Select the Group block, Row block, or Stack block. You will find the Block Inserter + icon to the bottom right of the group of blocks. Click the Block Inserter + icon to quickly add a new block to the nested group.
You can also discover and install third-party blocks from within the WordPress block editor using the WordPress block directory.
To search the WordPress block directory, use the Block Inserter + icon on the top toolbar in the WordPress block editor and search for available blocks.
WordPress first runs a search on the available blocks that come with WordPress. If it’s unable to find any block that meets the criteria, it starts searching the block directory and gives you a list. Click on any from the list to install the third-party block.
The block directory search functionality is only available to WordPress users who have permission to install plugins. If you add a third-party block from the block directory, the corresponding WordPress plugin will be installed on your site.
When you click the Block Inserter + icon to insert a new block, you can use the search box at the top to search for blocks.
Type in a block name or a keyword for example, "image"
or "heading"
. Then a list of blocks that fit the search term will show up in the modal window. You can also see a preview of the block below the list of blocks.
Select the desired block with the mouse click, tap, or arrow keys.
When you use the slash command to add a block, you get an auto-suggested list of blocks based on what you start typing. You can select from the list or keep typing until you find the desired block.
For information on how to move blocks, check out this article: Moving blocks.
Changelog
The Block Directory is a new way for block editor users to discover, test and install new blocks on their website. It is available to content creators who have the capability to install and activate plugins.
WordPress first searches the current site for the block named “team” or “staff”. If it doesn’t find a block, it searches in the Block Directory which is a special corner of the WordPress plugin repository, where single block plugins are available.
If the search finds blocks, they will be displayed in the inserter, including a preview section. Decide which block to use and select it to add it to the page.
In the background the single-block plugin is installed and activated, and the user can continue creating the page.
Blocks from the Block Directory are installed as a plugin. To uninstall a block that you installed from the Block Directory, go to the Plugins screen. Find the block plugin and deactivate and delete to uninstall the block.
If a previously used block is no longer available on the site, you have the option to reinstall it.
When the page is first loaded, a search will be done in the background to check if that block is still available. If it has been found, a?Install [block name]?button will be displayed in place of the missing block on the page. Select the button to automatically reinstall the missing block.
A?Keep as HTML?button will also be displayed, or it will be the only button present if no matching block was found when the page loaded.
You can choose that option instead. It lets you convert the content into a custom HTML block so you still have a chance to use the content of the block you had before.
You could also choose to remove the missing block and choose another one from the Block Directory using the steps outlined above.
In this video shows you how the Block Directory works. It’s starts at 3:00 time stamp. Start it at the beginning if you are new to the block editor and need a refresher.
On Learn.www.remarpro.com contributors started creating workshop videos for self-study and scheduled discussion groups online. Check it out.
If you’re encountering this error message in the Block Editor, it typically means that there is a problem with the content you’re trying to insert or edit within a block. Usually, the error is displayed when the affected block contains content that has a formatting problem, this could happen because of a number of reasons explained in this article.
More Options
As with other blocks, the affected blocks also include the More options menu in the block toolbar. You can access these options by clicking on the ellipses (three dots) in the block toolbar as shown below. The Copy Block option allows you to copy the block and its content to a clipboard, you can paste this content elsewhere in the editor or even on a different post/page.
Read about the More Options settings and how to make use of them
A block’s toolbar provides an option to edit your block’s HTML code.
In this case, the error can be displayed when there is a syntax error. For example, adding two <p> opening tags before a closing tag </p> on a Paragraph block or using the wrong syntax for adding a link as shown below.
This can occur when the block editor detects a mismatch between the expected markup and the actual HTML content within a block. This error typically happens when HTML is manually added or copied into a block, and the block editor doesn’t recognize it as valid content for that specific block type.
For example, adding Javascript to a block that isn’t the Custom HTML Block or in the case shown below, adding inline CSS to a paragraph block. Style attributes aren’t expected by the block so it will return an error.
It’s possible that a theme or plugin is interfering with the editor. Maybe your site isn’t up-to-date, you didn’t configure some important settings properly or there is some code conflicting with the blocks on the page. However, whatever the reason may be, you will need to do some troubleshooting to solve this kind of problem.
The block will give you several options to fix the error: Attempt Block Recovery, and an ellipsis (three-dot) button containing the options Resolve, Convert to HTML, and Convert to Classic Block.
You will have to be mindful of why you are receiving the error, in some cases these options will not be helpful for example when you have the wrong Syntax or you try to add Javascript or PHP code.
Attempt Block Recovery button will restore the block as it was before the error appeared. This option will automatically remove the custom code and revert the block back to its previous safe state.
When you click on the ellipsis (three dots) button you will see more options, the first option is Resolve. When you choose to Resolve the block error, you will be provided with two options each with its own possible outcome.
On the left side, you have the option to convert the block to a Custom HTML Block, this will convert the invalid content directly into an HTML block and keep any HTML customization made. You can read more about the Custom HTML block in this guide.
On the right side, you can convert the HTML code to Blocks, changes that will be made when that is done will be clearly displayed.
In the example below, converting the block to a Custom HTML block will keep the inline CSS added to change the font color to pink which would normally be stripped off by the Paragraph block.
The third option is to convert to a Custom HTML block, this is the same function as the Convert to HTML option which is part of the Resolve option above.
You can convert the invalid content into a Classic Block, this block contains the same options from the Classic Editor. The changes you would have made will be kept similar to converting the Custom HMTL block. You can go over our Classic Editor guide for an explanation of each of the options shown for the Classic Block.
How to search for patterns
How to use a pattern on your site
If you’re logged into your www.remarpro.com account, you can also mark items as favorite by selecting the heart icon.
If you find a pattern unusable or broken, has trademark issues or is inappropriate you can report the pattern, once you login with your www.remarpro.com user account.
Reporting will not be
You will see a message on screen.
Changelog:
To find more patterns, you can also use the Block Pattern Directory.
Since WordPress 6.3, you can create your own patterns. Patterns work exactly the same as predefined patterns stored in the Patterns Directory. Also, with the “Sync” option enabled, the synced pattern will behave in exactly the same way as a reusable block. Editing the synced pattern will update it anywhere it is used. After creating a synced pattern, you can ‘Detach’ it to a regular block, and edit the block without affecting your already saved synced pattern.
WordPress 6.3 renamed Reusable Blocks to Patterns. A synced pattern will behave in exactly the same way as a reusable block.
Since WordPress 6.3, you can create your own patterns.
You’ll then be able to locate the created patterns at Patterns -> My Pattern or Synced Patterns (overlapping rhombus icon) of Block Inserter.
You can manage your pattern from the Site Editor.
You can Rename, Duplicate, Export as JSON, and Delete the pattern from Actions menu (three dot icon) of each pattern.
To modify a pattern, click the pattern, and click Edit (pencil icon).
Once you insert a Block Pattern, the blocks can be edited in the same way as any other blocks.
Click on any block in the pattern, to edit the content within the block.
You can also add more blocks to a Block Pattern and insert more Block Patterns to your page anywhere you want.
For the synced pattern, you’ll see the synced pattern mentioned in the saving flow when you save the post or page itself. Saving will update it anywhere it is used even in other posts or pages.
Some blocks such as the Social Icons block and Query Loop block have patterns built into the settings of the block. To find the contextual patterns for the Social Icons block, select the Social Icon in the Block toolbar and navigate to Patterns in the drop-down:
For the Query Loop block, patterns are shown as part of the configuration of the block itself. You can learn more about the Query Loop block here.
If you want more patterns to choose from, you can explore the Block Pattern Directory. This is a new directory that allows you to search and find new patterns to use on your site. After searching and finding a pattern you like, select Copy and it will be saved to your clipboard. From there, return to your page or post and use the Paste function to add the pattern to your content.
You can read more about the Block Pattern Directory here.
Can I use the default images within Block Patterns on my own site?
Yes! The images provided within Block Patterns are free to use on your site. However, because these images are being referenced from an external source (i.e. they are not added to your site’s Media Library), there is always a chance they could change or be removed.
We recommend replacing these images with your own content but if you would like to use the ones in the patterns, please consider uploading them to your own Media Library by using the “Upload external image” button.
When you publish a post, the pre-publish check will ask you if you want to upload external images to the media library.
Will Block Patterns be changed? Will changes to patterns that I use impact my site?
New Block Patterns will be continuously added and existing Block Patterns may be changed or removed over time. However, once you add a Block Pattern to your site, there is no link to the original pattern in the Add Block menu, and any subsequent changes would not impact anything on your site’s pages or posts.
.gif
for contextual patterns. Added link to Learn Tutorial. Sentence casing updates.There are different ways to configure and work with these blocks. You can also install additional third party blocks from the WordPress block directory.
Below is a list of the blocks that are currently available within WordPress. We will be adding to this list as more blocks are added with each release.
The Block Inserter categorizes the blocks into 6 different types: Text, Media, Design, Widgets, Theme and Embeds.
Learn more about the Embeds in this support article: Embeds.
You will also find a Most Used blocks category which is not shown by default. This category will be visible only if you enable ‘Show most used blocks’ in your Preferences.
When enabled, the Most Used blocks category will be displayed right above the Text blocks category. It will list all the blocks that you used recently on your post or page.
The blocks that appear in the Most Used section will vary based on which blocks you used recently on your post or page.
The following blocks have been deprecated.
Deprecated block | Since | Replaced with / Renamed |
---|---|---|
Button block | 5.4 | Buttons block |
Text Columns block | Columns block | |
Post Comment block | Comments Query Loop block | |
Comments Query Loop block | Comments block | |
Comment Author Avatar block | Avatar block |
The border and shadow settings are available when you use the?block editor. If you are new to the block editor,?this guide?will show you how to work with blocks. You can read more about the new block editor features and improvements?in this article.
The border and shadow settings can be found in the Block Settings sidebar of a?block?under the section?Border.
If you don’t see the Block Settings sidebar, select the block you want to customize, then click the settings icon that is to the right of the Publish or Update buttons in the WordPress Editor.
In the?Border & Shadow?section, shadow option may be hidden. Click on the three-dot border options menu (also known as an ellipsis) to explore all the border and shadow settings that are not visible by default.
You can read more about block settings here.
Each supported block comes with different border and shadow settings. If you make customizations to these settings and want to revert back to the original settings quickly, you can do so by selecting the three-dot menu icon and clicking?Reset All?as?shown in this article. This resets the settings and removes all of your changes. Note that not every block supports all the border settings.
The width setting allows you to define the width of the border on the four sides. You can type in a value in the text box or use the slider to adjust the value.
You can click on the Link icon to unlink the sides and set separate values for the border width for the top, left, right and bottom.
You can choose to set border width using different units. Click the px
icon to change the unit of measurement for the border thickness or radius. You can choose between px
, %
, em
, rem
, vw
, and vh
.
Read more about what each of these units means.
The border color for your block can be set using the style picker next to the border width as seen below. You can the colors from the theme palette or from the default colors in the theme.
If you make customizations to these settings and want to revert back to the original settings quickly, you can do so by selecting the Reset to default button at the bottom of the color picker. This resets the settings and removes all of your changes.
From the color picker, you can also select one of the three border styles: straight line, dash line, and dotted line.
The radius setting will give your block a more rounded border. Setting this to 0 means the block has sharp edges.
You can choose to set a border radius using different units. Click the px
icon to change the unit of measurement for the radius. You can choose between px
, %
, em
, rem
, vw
, and vh
.
Read more about what each of these units means.
You can type in a value in the text box or use the slider to adjust the value.
You can click on the Link icon to unlink the radii and set separate values for the four corners. Below is an example of how you can have unlinked values to create a block with uneven round corners.
Note that when you unlink the radii, hover over the radii text boxes to display a tooltip that shows which corner each of the four text boxes relates to as shown below:
The shadow setting will give your block a shadow effect behind it.
Tips: If you don’t see the shadow option in the Border & Shadow section, click the three vertical dots to the right of the section header and select Shadow option.
Click Drop shadow and select shadow effects.
This powerful set of tools allows for some neat ways to decorate everything from individual images to overall columns of content. To see how borders can transform a block, here’s an example showing how a theme author can customize a featured image block to make it stand out even more:
The color settings are available when you use the?block editor. If you are new to the block editor,?this guide?will show you how to work with blocks. You can read more about the new block editor features and improvements?in this article.
The color settings available will vary based on the theme and the block in use.
The color settings can be found on the Block Settings sidebar of a block under the section Color.
If you don’t see the Block Settings sidebar, select the block you want to customize, then click the settings icon (a cog) that is to the right of the Publish or Update buttons in the WordPress Editor.
In the Color section, click on the three-dot menu (also known as an ellipsis) to explore all the color settings that are not visible by default. Note that not every block supports all the color settings.
If you make customizations to these settings and want to revert back to the original settings quickly, you can do so by selecting the three-dot menu icon and clicking Reset All as shown in this article. This resets the settings and removes all of your changes.
Each supported block comes with different color settings.
This option allows you to change the color of the text, and background on the block you are working on. A combination of these color settings can be used to call attention to your most important content.
You can pick a color from the color palette of your theme. You can also add a custom color from the color picker or enter the HEX, RGB, or HSL color values based on your brand. Click the two rectangle boxes next to the color slider to copy the HEX, RGB, or HSL color values.
Accessibility tests are built into the editor to warn you when the text may become hard to read against the background color choices as shown below.
On some blocks, you will find the option to change the link color.
Some blocks such as the Heading block allow you to set either a solid color or a gradient as the background. A gradient is a mix of two or more colors, displayed using a certain pattern (from lighter to darker, or one color blending into the other).
A slider will appear that shows the two color points that make up the gradient.
You can click on any of the two color points to display the color picker for changing the color value. You can either choose a color from the color picker or enter the HEX, RGB, or HSL color values.
You can add additional color points if you like by clicking the?+?icon that appears when you hover over the gradient slider.
You can choose between the Linear or Radial gradient type. The angle control shifts the position of the gradient.
The Linear type creates a gradient between the two colors along a straight line, whereas the Radial type starts from the center and moves to the borders.
You can create a two-tone color effect (called the duotone effect) on images without actually changing the original image
The duotone filter option allows you to add this filter color to your block content from the block toolbar. The filter can be black, white, or?any?other color combination of your choosing. The duotone effect works best on high-contrast images.?
To get started, select the Duotone filter icon in the block toolbar. You can pick the two colors for the effect from the list of duotone presets provided in the drop-down.?
You can also pick your own colors for the shadows and highlights by clicking on the Shadows /Highlights option which opens up the color picker and then selecting your custom color from the color palette.?
If you want to remove the duotone filter you can click the Clear button found at the bottom-right of the color palette.
To illustrate the above settings, below is an example of how to add custom colors so that the social link icons will match the branding on your site:
The dimension settings are available when you use the block editor. If you are new to the block editor, this guide will show you how to work with blocks. You can read more about the new block editor features and improvements in this article.
The dimension settings can be found in the Block Settings sidebar of a block under the section Dimension.
If you don’t see the Block Settings sidebar, select the block you want to customize, then click the settings icon (a cog) that is to the right of the Publish or Update buttons in the WordPress Editor.
Below are a few examples from different blocks:
In the?Dimension?section, click on the three-dot menu (also known as an ellipsis) to explore all the dimension settings that are not visible by default.
Note that the type of dimension settings you can see in your block depends on whether they have been supported by the block or not.
If you make customizations to these settings and want to revert back to the original settings quickly, you can do so by selecting the three-dot menu icon and clicking Reset All as shown in this article. This resets the settings and removes all of your changes. You can reset individual settings by clicking Reset on each setting. You can also reset all of them globally by clicking on the Reset All option.
Each block comes with different dimension settings.
This setting impacts the space between a block’s content and its border. You can either set horizontal and vertical paddings or set different padding values for each side. To set different padding for each side, follow the steps in the Unlink sides section.
This setting impacts the space around a block. You can either set horizontal and vertical margins or set different margin values for each side. To set different margins for each side, follow the steps in the Unlink sides section.
Preview margin and padding
When changing the margin or padding in a block, the editor will show the corresponding change, highlighted in a blue box around the block.
This setting impacts the space between nested blocks. This means that if you set block spacing for the entire block, you can change the spacing of the nested block within the parent block. You can find this setting in blocks like the Buttons block or Group block.
Within this setting, you can choose to set block spacing using different values: px, %, em, rem, vw, vh.
This setting enables you to set a minimum height for the block. You can find this option in the Cover block, Post Content block, Group block (including the Row and Stack variations). Within this setting, you can choose to set the height using different values: px, %, em, rem, vw, vh.
An example use case is to ensure that a Post Content area has a minimum height, forcing a footer area to render lower on the page, even if a page has very little content. Because of this, it can be quite useful to use viewport relative units when setting minimum height, e.g. 100vh
for a block that takes up the entire height of the viewport.
By default, the Padding and Margin settings will apply the same value for vertical and horizontal settings around the block. You can add a different value to each of the sides by clicking on the padding options or margin options icon on the right.
A drop-down menu will appear where you can select any of the side to modify. You can select a specific side (Top, Right, Bottom, and Left) to have a specific setting for the side, or select Custom to make individual setting for each side.
To return to adding the same value for all sides, just select the same icon again.
You can add custom values for a block’s margin, padding, or spacing, and also change the units to one of the following: px, %, em, rem, vw, vh.
Various combinations of these options are available in the following blocks:
The following is a demonstration of various settings in action with the Post Featured Image, unlink the sides of the block, and use different units.
The Embed block lets you add content from a third-party site to your post or page.
When you are embedding content, you don’t need to upload the content to your WordPress site. You are creating a link to the content, from within your post or page.
Steps to embed content from a third-party site on your post or page
/embed
in a new paragraph block then press enter
to add one quickly.Detailed instructions on adding blocks
The block toolbar contains the tools to customize each block. The Embed Block’s toolbar consists of the following tools:
Transform to
You can transform an Embed into a Paragraph, Columns, or Group block. Transforming to a Group block will let you change the background color around the Embed.
Block-moving tools
Use the block-moving tools to move the block up and down inside the editor. Use the six dots icon to drag and drop the Embed Block and reposition it anywhere on the editor. Alternatively, click on the up and down arrows to move the block up or down the editor.
Get more information about moving a block within the editor.
Change alignment
Via the edit URL, you can change the Embed URL in the embed block. Overwrite the existing URL and click on the “Embed” Button.
Read about these and other settings.
Via the Media Settings you can control the behavior of your post embed when viewed from a smaller device, like on a phone screen.
The Toggle switch turns on or off the resize functionality for smaller devices. The default setting is “on” or blue.
“Off:” This embed may not preserve its aspect ratio when the browser is resized. In the off position the toggle switch is gray.
“On:” This embed will preserve its aspect ratio when the browser is resized. The toggle switch turns blue in the “On” position.
Advanced
The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and style the block as you see fit.