Defaulting to the Gutenberg Classic Editor – Fixing Gutenbergs Paragraphs

I have noticed one of the most frequent complaints about Gutenberg is the fact that paragraphs are treated as individual blocks. This disrupts the writing flow and makes normal text operations more cumbersome.

*

I was thinking about this the other day and remembered that it’s possible to change the default blocks on a per post type basis. So it’s relatively straightforward to set the classic editor block as the default block for blog posts; instead of paragraph blocks (as they are now). This means that when you write a post pressing enter will create a new line (or line break) rather than a new paragraph.

The code is super simple too – I have added it below. You can view the original Gist on Github. You can also download a zip of the Gist and install it as a plugin.

I appreciate that this isn’t a perfect solution – but for some it may help ease the transition into a block based interface.

Personally I have moved over to using Gutenberg full time and, whilst Gutenberg still has a few quirks, am pretty happy with the new setup and the extra flexibility it offers.

Was it good/ useful/ a load of old rubbish? Let me know on Mastodon, or BlueSky (or Twitter X if you must).

Link to this page

Thanks for reading. I'd really appreciate it if you'd link to this page if you mention it in your newsletter or on your blog.

WordPress News

The latest WordPress updates from the WPBriefs Podcast.

Related Posts

20 Jul 2018

GutenReady for the Gutenpocalypse – Educating Gutenberg

It was WPCampus last weekend, an education focused WordPress conference. There’s a lot of talks about using WordPress in Universities and other educational establishments – but there’s also a lot of more traditional WordCamp subjects.One presentation in particular caught my...
04 Nov 2006

WordPress Tips and Tricks – Post in Advance

I’m sure most people know about this but the ability to post things in advance with WordPress is absolutely great. My two blogs (this one and Binary Joy) posted 16 articles whilst I was on holiday despite me not being...
16 Mar 2019

The WordPress Block Directory

There has recently been a proposal to introduce a new type of plugin into WordPress. One specifically for editor blocks.I find this an interesting concept, and I can definitely see some benefits, but there are also some downsides. For starters;...
28 Sep 2018

Gutenberg Cloud – the Ultimate Open Source Project?

Gutenberg Cloud is a project for creating open source Gutenberg Blocks that work with both Drupal and WordPress that is created by web agency Frontkom.The team at Frontkom made a version of Gutenberg that works with Drupal. Since Gutenberg is...