Archived topic
Generateblocks Headline returns
5 replies · Started by Andrew on July 14, 2021
Heya. I have a minor niggle with the behaviour of the Headline block. Return gives <br> instead of <p> tags - and it's a major hassle trying to break content up into paragraphs using this block type. Default for WP creates a new block for each para with identical settings when you hit return. Can this be set as a preference somewhere?
Hi Andrew,
I'm not exactly sure what you mean.
<br> is created if you're on the Headline Block's text field. Pressing enter/return assumes you're trying to add a line break which is <br>. That's how Headline block is intended to work. I'm afraid there's no toggle to set this as a preference.
If you require a new paragraph block when you press enter/return, you'll have to use Gutenberg's default Paragraph Block. :D
Yeah usually a <br> is -shift- return, <p> is return. This also applies when copy/pasting chunks of copy from a copywriter. Paragraph breaks are converted to line-breaks. An odd design decision IMO.
Hi there,
The Headline block was not created to replace the core Heading block. And we recommend you don't use it for writing/pasting standard copy - leave that to the core Heading / Text blocks. There is no benefit in using the Headline block and users may be inclined to add block level styles to pages of text that are no longer responsive to the themes customizer settings - which is not good.
Use the Headline when you need to break from the theme styles, such as when you're creating a CTA, Pricing Table or other complex layout where font sizes, colors and spacing need to be adjusted for that specific element. Although it breaks convention, after thorough testing we found the auto line break behaviour far easier to work with in the Block Editor for this use case.
Thanks David - good explanation.
You're welcome - and thank you for the feedback, we'll keep this in mind!