The Gutenberg Block Editor, presented formally in WordPress 5.0, provides customers the chance to totally customise their WordPress content material and websites. Not constrained through the want to create in a WYSIWYG device just like the TinyMCE Classic Editor, Gutenberg supplies person blocks for each and every part of the submit’s or web page’s content material. With regulate over the settings for each and every particular block, customers can design WordPress content material extra simply than ever sooner than. And probably the most most simple techniques to make designs stand out is to take them past their default settings. So we’re going to take a look at how you can resize blocks in WordPress so that you could get started considering (and designing) outdoor of the field.

Maximum resizing within the block editor remains to be constrained to the content material house of the website because of the blocks’ responsive nature. When you have set your web page’s content material house to full-width, you’re going to be running inside of that house. When you have a submit content material house set to from 580px or 1200px, as an example, you’re going to paintings there. The strategies we’re the use of to show you how you can resize blocks in WordPress are all in line with the speculation that you are going to be staying inside the borders of any explicit block’s container.

Learn how to Resize Blocks within the Editor

Some—however now not all—blocks have integrated resizing choices. Those are the perfect ones to resize for glaring causes. Relying at the block, on the other hand, the resizing choices can be in other places.

Instance #1: The Symbol Block

Clicking at the block will deliver up the context menu, and the resizing choices listed below are in reality spacing choices. Then again, the large width and complete width alignments will trade the dimensions of the picture block to both the width of the container (large) or to the width of the entire web page (complete).


You’ll be able to additionally resize the picture block the use of the block settings within the right-hand sidebar. The aptly named Symbol Dimension phase has a lot of alternatives with which you’ll be able to resize the block.image options for how to resize blocks in wordpress

WordPress has a dropdown for speedy resizing, and you’ll be able to make a selection presets from thumbnail, medium, massive, and complete dimension. Deciding on complete dimension will range in your theme whether or not it in reality presentations absolutely or suits to the content material house.

You’ll be able to additionally particularly modify the width and peak through pixels. Underneath that you’ll be able to modify through share. The share is in line with the numerical worth within the width and peak fields. Now not the preset symbol dimension that you simply decided on from the drop-down menu.

And in any case, you’ll be able to click on at the symbol itself to deliver up a blue border with white, round anchors. You’ll be able to drag those to resize the block.

still resizing images

You’re going to merely click on and drag on any of the anchors to scale the picture. Doing so will modify the sizing within the peak and width fields within the block settings menu.

Instance #2: The Tournament Block

For the Tournament Block, the resizing settings are only within the context menu within the editor itself. (The Event Block is a separate plugin through Automattic that you are going to set up, and it isn’t a part of Gutenberg core editor.)

width of event block

Like one of the crucial symbol block choices, the resizing choices listed below are technically spacing choices. However the two choices are Align Middle and Vast Width. You’ll be able to make a selection one to be targeted within the container or to be the entire width around the display.

Adjusting the peak of the block within the editor itself is more or less hacky, however works. When you merely hit input/go back within the empty-block box, you’ll be able to enlarge the peak through putting additional, empty paragraph blocks.

hacky height adjustment

It’s a less-than-ideal answer. However it’s speedy and works in a pinch—particularly given the absence of an actual height-adjustment choice for the Tournament Block.

Instance 3#: The use of Columns to Resize Blocks in WordPress

If the block you wish to have to resize does now not include resizing choices in its settings panel or context menu, the use of the block editor’s columns is otherwise you’ll be able to resize any block. Merely seek for the Columns block through urgent any of the + buttons so as to add a brand new block.

resize blocks

Throughout the Column block, you’ll be able to upload another blocks that you wish to have. Within the seek choices, block editor Patterns additionally seem. Those are templates you’ll be able to insert into your submit or web page with content material already sized and positioned, ready in your content material to interchange the placeholder.

From the outset, the Columns block allows you to make a selection the dimensions of the column itself. It’s damaged into 6 other orientations, each and every with a distinct share of the web page used for person columns.


Those aren’t the one configurations you’ll be able to use. You’ll be able to use the blue + button throughout the block so as to add a brand new column at any level. Every person column has its personal settings panel through which you’ll be able to modify the width of it by myself through percentages.

using columns to resize blocks

It will take some experimentation to get the sizing proper to your design. Then again, when it’s completed, you’ll be able to have some well-designed and well-spaced content material in your entrance web page. Needless to say any empty columns that you’ve within the block editor can even display up as empty at the entrance finish.

front-end appearance

Through adjusting the width, placement, and selection of other columns, your blocks can also be resized and positioned in nearly any method.

Want Extra Sizing Choices? Imagine a Extra Complicated Web page Builder

We notice that a few of these the right way to resize blocks can really feel proscribing. When you in finding that they’re too proscribing for you, it could be time to seem right into a extra complicated web page builder.

divi resize options

Our personal Divi, as an example, has Sizing and Turn out to be choices for each and every module (block) that come up with a lot higher regulate over form, dimension, and spacing than is imaginable in Gutenberg. Maximum complicated web page developers do, too, so when you in finding that Gutenberg’s choices are too proscribing, trying out one thing like Divi could also be the most efficient subsequent step.

Learn how to Resize Blocks in WordPress The use of CSS

Every block has a CSS phase within the settings panel below Complicated Settings. Along another block-specific complicated settings, each and every one has a box for Further CSS Elegance(es). You’ll be able to assign any selectors you wish to have to this person block, whether or not they exist already in your website or when you create it particularly for this block.

image block css

Most often, we might counsel the use of CSS IDs as an alternative of Categories for person blocks, however that’s now not supported through the block editor (through default, a minimum of). So you’ll want to simply use more than one Categories to stay alongside of person blocks somewhat than IDs. Categories are actually intended to hide massive classes of part varieties, whilst IDs are intended for person parts. On this case, we recommend the use of a transparent naming conference to stay issues directly on your code.

Regardless, you’re going to merely enter the category into the textual content box. Don’t come with the duration/dot in entrance of the Elegance identify on this box.

block css

Now, you must navigate to Look – Customise and in finding the Further CSS phase on the very backside. Write or paste the CSS code to resize the block in your liking.

block css

We advise heading off the use of measurements in pixels (px) as a result of they’re absolute. Ideally, you’re going to use both vw (viewport width), vh (viewport peak), or (share) to regulate the block. Those will each and every scale in connection with the tool and/or different content material round it.

.block-1 {

.block-2 {
	width: 100vw;

.block-3 {

Needless to say % and vw/vh are other, too, even though they serve as in a similar fashion. All of them serve as on percentages, however the ones are relative to other anchors.

The proportion size is relating to the container through which the part is held. So if the phase or row the part sits in doesn’t move to the sides of the display, even atmosphere width:100% won’t succeed in the limits.

The use of vh/vw will, on the other hand, as they’re relative to the viewport of the tool itself, now not the website’s parts. The use of peak:80vh, you’ll be able to all the time make certain that this block takes up 80% of the display peak, without reference to whether or not it presentations on a cellular tool, desktop, or pill.


The block editor in WordPress provides customers an enormous selection of customization choices that have been in the past unavailable (inside the editor itself, this is). Figuring out how you can resize blocks in WordPress is very important to having the ability to make the most of the block editor to its fullest extent. And with full-site enhancing now in its repertoire, that is one ability that’s handiest going to be extra helpful as time is going on.

What are some guidelines and tips you’ll be able to proportion about resizing blocks in WordPress?

Article featured symbol through 3rieart /

The submit How to Resize Blocks in WordPress gave the impression first on Elegant Themes Blog.

WordPress Web Design

[ continue ]