WordPress 5.0 is solely across the nook, and many people really feel excited and fearful on the similar time. Gutenberg brings a super exchange in how we use WordPress, and there’s for sure some fear referring to what’s going to occur to our web pages if we must replace our installations with out prior to now checking out it. However don’t concern, we’ve a put up about the best way to disable the Gutenberg WordPress Editor (although it’s simply quickly) with a view to save you unsupported topics and plugins from breaking our web pages.

You’ll be stunned to grasp that we’re already the use of WordPress 5.0. In truth, we’re! As Matt mentioned on Make WordPress blog:

If we stay the 5.0 unlock to strictly 4.9.8 + Gutenberg, we will be able to have a unlock this is each main and a non-event on the subject of new code. It’s all battle-tested. In many ways, 5.0 is already de facto out within the wild, with some forward-looking hosts already putting in and activating Gutenberg for brand new installs.

Nonetheless searching for that highest WordPress host?

At Kinsta, we do website hosting other than the remaining. We’ve blended the quickest platform on the planet (Google Cloud) with the most efficient enhance crew within the trade. Able to take your website the following stage?

Which means that we have already got WordPress 5.0 working on our servers: it’s simply WordPress 4.9.8, with Gutenberg within the core. In truth, that’s now not all, as a result of WordPress 5.0 comes with an extra access, which is the new Twenty Nineteen default theme.

Twenty Nineteen WordPress Theme

Twenty Nineteen WordPress Theme

So let’s dive in and notice what’s new.

About Gutenberg and Twenty Nineteen

A few of it’s possible you’ll dislike Gutenberg. Additionally, the controversy over the brand new editor is some distance from being over, however believe the declared scope of Gutenberg:

Those tradition blocks exchange how customers, builders, and hosts engage with WordPress for construction wealthy internet content material more uncomplicated and extra intuitive, democratizing publishing and paintings for everybody, without reference to technical skill.

That is what Gutenberg objectives to, and Twenty Nineteen brings issues a step ahead, being constructed with Gutenberg and for Gutenberg. It’s a minimum, typography-driven running a blog theme with a single-column format, and can be utilized to construct a variety of web pages, going from private blogs to small trade web pages.

Writing about Twenty Nineteen most commonly way we’re writing about Gutenberg. In Twenty Nineteen Gutenberg lets in customers now not handiest to create wealthy content material however even to construct their whole web pages within the editor. Consistent with Allan Cole on Make WordPress blog,

Gutenberg grants customers an exceptional stage of freedom to customise their website’s format and design. As a way to totally reach their imaginative and prescient, customers will want a new era of versatile topics, constructed to benefit from the inventive freedom that Gutenberg provides.
With that during thoughts, WordPress 5.0 will release with a brand spanking new default theme: Twenty Nineteen

Within the Twenty Nineteen theme, Gutenberg is greater than a content material builder, it’s a website builder, and WordPress customers shall be allowed to construct their whole web pages making the most of blocks. And if Gutenberg isn’t your factor but, many of the in style page builder plugins also are including enhance for Gutenberg.

Putting in Twenty Nineteen

Twenty Nineteen must apply the discharge plan of the brand new WordPress main unlock. On the other hand, WordPress 5.0 must be launched on November nineteenth, and it’s imaginable {that a} operating model of Twenty Nineteen received’t be in a position via that date. See all imaginable release dates for WordPress 5.0. Anyway, the theme is to be had for obtain on Github, and can keep there till it’s merged into core.

Twenty Nineteen is according to each the _s and gutenberg-starter-theme and springs with Sass within. When you’ve were given the .zip bundle, extract the theme and add/transfer the theme folder onto the /wp-content/topics listing of your building set up. You’ll additionally add it out of your WordPress dashboard.

Add new theme

Importing a brand new theme from the WordPress dashboard

Kinsta shoppers can set up it on their staging environments. If you happen to’re now not with Kinsta, you’ll nonetheless install it on your local machine.

Twenty Nineteen successfully installed

Twenty Nineteen effectively put in

The Glance and Really feel of Twenty Nineteen

The only-column format emphasizes the content material and highest suits to complete and huge width blocks. The theme doesn’t enhance sidebars and springs with simply two navigation menus: the Number one menu and the Social Hyperlinks Menu, each situated within the web page header.

Twenty Nineteen header

Web page identify, website description, and menus in Twenty Nineteen header

The weblog web page looks as if a normal weblog web page with featured photographs enabled. Unmarried posts and pages display highest the possibility of the present model of Gutenberg as website builder.

Since it’s completely according to Gutenberg, Twenty Nineteen’s options most commonly rely on Gutenberg’s building cycle and at the availability of blocks. We will upload widget blocks, shortcode blocks, galleries, HTML code, and so forth. On the other hand, these kinds of blocks are some distance from masking all our wishes. However fortunately we’ve a number of plugins that let us so as to add new blocks to Gutenberg, like Atomic Blocks, Advanced Gutenberg and Stackable. There are even initiatives just like the Gutenberg Cloud that have sprouted up.

If you happen to’d assume that the theme appears too minimum, believe that Twenty Nineteen continues to be a piece in growth. We’re now not positive whether or not it’s going to be merged into the core by the point WordPress 5.0 shall be launched, and we will be expecting a number of additions and insect resolutions within the subsequent long term. Additionally, there are numerous problems which can be nonetheless unresolved, and lines that wish to be applied. For example, on the time of this writing, Twenty Nineteen supports neither submenus nor Custom Headers and Video Headers, however we predict those options to be added in a cheap period of time.

If you happen to’re within the state of the theme, take a look at the full list of issues on Github.

Theming for Gutenberg: A Developer’s Means

Out of the field, Gutenberg supplies fundamental enhance for block types in topics, and theme builders are unfastened to override Gutenberg’s default types with their tradition types. However builders too can totally forget tradition types and make a decision to depend solely on Gutenberg to genre blocks at the entrance of the website.

Having an editor that appears and really feel just like the ensuing content material improves the writing enjoy of the writer, and lets in everyone to really feel happy with the UI.

Anyway, some Gutenberg’s types and presentational options require topics to expressly upload enhance for them, and this may also be completed via calling add_theme_support within the purposes.php record when the after_setup_theme motion is caused. Here’s an instance of a function implementation:

serve as mytheme_setup() {
    // Upload enhance for Block Kinds
    add_theme_support( 'wp-block-styles' );
add_action( 'after_setup_theme', 'mytheme_setup' );

Underneath is indexed a choice of those Gutenberg options, a few of that are additionally supported via Twenty Nineteen. You’ll to find the entire record of options in Gutenberg Handbook.

Including Toughen for Gutenberg Block Presentation Kinds

One of the goals of the crew in the back of Gutenberg was once to construct a versatile device for styling inside of topics, and to get as shut as imaginable “to visible parity between front-end and the editor”. The aim is to offer the person a correct preview of the content material as it’s going to appear to be at the front-site.

To reach that objective, the crew needed to separate presentational types and structural types. Through default, presentational types don’t seem to be loaded at the front-end, with a view to keep away from to impact the website look. Anyway, new topics can benefit from Gutenberg’s presentational types via merely enabling them with the next registration (see the Handbook for additional main points):

// Upload enhance for Block Kinds
add_theme_support( 'wp-block-styles' );

As it’s possible you’ll be expecting, Twenty Nineteen helps Gutenberg’s block types. The only put up web page appears at the front-end just like the enhancing put up web page, with the only distinction of the featured picture, which presentations on a desktop as a background picture masking the entire viewport. The picture underneath presentations Gutenberg in motion at the back-end.

Gutenberg WordPress editor

Gutenberg WordPress editor in full-screen mode

And right here is similar put up at the entrance website.

A single post page in Twenty Nineteen

A unmarried put up web page in Twenty Nineteen

Vast and Complete Alignments

Gutenberg additionally supplies two further alignment choices: wide and full-width alignment, however you’ll make a choice Vast or Complete-width alignment provided that your theme helps them. If it does, Gutenberg presentations two further alignment icons.

Alignment option buttons

Vast and Complete width alignment buttons in Gutenberg

The picture underneath presentations Align heart, Vast width and Complete-width photographs in Twenty Nineteen.

Alignment options

Align heart, Vast width, and Complete-width when compared

Theme builders can upload enhance for Vast and Complete-width alignments via enabling them within the purposes record with a unmarried remark:

// Upload enhance for complete and huge align photographs
add_theme_support( 'align-wide' );

When we’ve added enhance for Vast and Complete-width alignments, we must give you the CSS declarations for 2 further CSS categories: alignfull and alignwide. Twenty Nineteen supplies the next types:

.entry-content > *.alignwide,
.entry-summary > *.alignwide {
    margin-left: auto;
    margin-right: auto;

@media handiest display screen and (min-width: 768px) {
    .entry-content > *.alignwide,
    .entry-summary > *.alignwide {
        margin-left: calc(1 * (100vw / 12));
        margin-right: calc(1 * (100vw / 12));
        max-width: calc(10 * (100vw / 12));

.entry-content > *.alignfull,
.entry-summary > *.alignfull {
    margin-top: calc(2 * 1rem);
    margin-right: 0;
    margin-bottom: calc(2 * 1rem);
    margin-left: 0;
    max-width: 100%;

.entry-content .wp-block-image.alignfull img {
    width: 100vw;
    margin-left: auto;
    margin-right: auto;

Notice: Watch out when the use of this feature, as a result of it’ll purpose problems for those who transfer theme (learn extra in this matter on Github).

Editor Taste

The Editor Style is a function offered with WordPress 3.0 permitting theme builders so as to add tradition types to the TinyMCE editor. Gutenberg additionally helps this selection, however it works another way from the Vintage Editor, which so much types at once into the iframe of the editor. Gutenberg provides particular CSS selectors, because it doesn’t use an iframe.

We will upload enhance for editor types as follows:

// Upload enhance for editor types
add_theme_support( 'editor-styles' );
// Enqueue editor types
add_editor_style( 'style-editor.css' );

This selection could also be supported via Twenty Nineteen. You’ll dive deeper into this matter in Editor Style in Gutenberg.

Block Colour Palettes

Gutenberg supplies a generic coloration selector within the editor’s Colour Settings panel. Theme builders can support this instrument via including tradition coloration palettes permitting customers to briefly select up the correct coloration for block background and textual content. This can be a two-step procedure:

First, we need to supply an array of colours:

add_theme_support( 'editor-color-palette', array(
        'title' => __( 'scorching red', 'themeLangDomain' ),
        'slug' => 'hot-pink',
        'coloration' => '#f865b0',
        'title' => __( 'basic rose', 'themeLangDomain' ),
        'slug' => 'classic-rose',
        'coloration' => '#fbcaef',
) );

Then we need to claim the corresponding types within the theme’s stylesheet:

.has-hot-pink-background-color {
    background-color: #f865b0;

.has-hot-pink-color {
    coloration: #f865b0;

Magnificence names get started with has-, adopted via the colour slug in kebab case, and finishing with the context, which may also be coloration or background-color. Lately, Twenty Nineteen doesn’t enhance block coloration palettes, however we will simply exchange this with a child theme.

Block color palette

A tradition coloration palette in Gutenberg

As an alternative, for those who’d wish to disable a tradition coloration palette, it’s important to upload the next line in your theme’s or kid theme’s purposes record:

add_theme_support( 'disable-custom-colors' );

Block Font Sizes

A theme too can override Gutenberg’s default set of font sizes. Here’s an instance of the code you must upload to the purposes record:

add_theme_support( 'editor-font-sizes', array(
        'title' => __( 'extra-small', 'themeLangDomain' ),
        'shortName' => __( 'XS', 'themeLangDomain' ),
        'length' => 10,
        'slug' => 'extra-small'
        'title' => __( 'small', 'themeLangDomain' ),
        'shortName' => __( 'S', 'themeLangDomain' ),
        'length' => 12,
        'slug' => 'small'
        'title' => __( 'common', 'themeLangDomain' ),
        'shortName' => __( 'M', 'themeLangDomain' ),
        'length' => 16,
        'slug' => 'common'
        'title' => __( 'huge', 'themeLangDomain' ),
        'shortName' => __( 'L', 'themeLangDomain' ),
        'length' => 26,
        'slug' => 'huge'
        'title' => __( 'higher', 'themeLangDomain' ),
        'shortName' => __( 'XL', 'themeLangDomain' ),
        'length' => 36,
        'slug' => 'higher'
        'title' => __( 'large', 'themeLangDomain' ),
        'shortName' => __( 'XXL', 'themeLangDomain' ),
        'length' => 56,
        'slug' => 'large'
) );

The brand new font sizes shall be added to the font length picker in Gutenberg’s Textual content Settings.

Custom font sizes in Gutenberg

Customized font sizes in Gutenberg

Following, we need to claim the corresponding types within the theme’s stylesheet. The category title must start with has-, adopted via the the font length title in kebab case, and finishing with -font-size.

.has-huge-font-size {
    font-size: 56px;

Twenty Nineteen does now not supply particular font sizes and depends upon Gutenberg’s defaults.

Notice: Keep in mind that, with a view to make all this code paintings, you must hook it throughout the after_setup_theme motion.


Twenty Nineteen may just paintings smartly for private blogs, and you might want to call to mind it extra like a white canvas than a completely useful WordPress theme. A so minimum manner can be a bit restricting on the subject of construction web pages for trade and e-commerce, however don’t concern: new options must be applied in a while, and lets see a extra robust model of Twenty Nineteen quickly.

In the interim, you might want to additionally take a look at some topics which can be already supporting Gutenberg. Atomic Blocks, GeneratePressGutentype, and Divi to call a couple of, however many others must come quickly. With WordPress 5.0 coming near so rapid, supporting Gutenberg isn’t an possibility, and theme builders must embody the brand new WordPress editor once imaginable to stay forward of the contest.

Have you ever put in Twenty Nineteen or any theme supporting Gutenberg? We’d love to listen to your ideas within the feedback underneath.

The put up Introduction to the Twenty Nineteen Theme (Theming for Gutenberg) gave the impression first on Kinsta Managed WordPress Hosting.

WP Hosting

[ continue ]