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.