How do I prevent unwanted breaks in texts/headlines?

Depending on your screen size, it may happen that you see unwanted breaks in words (especially long ones), for example in headlines. There is a simple way to make sure words break only where and how you want them to: HTML entities.

There are a lot of interesting HTML entities, however we'd like to highlight two in this context:

­ —> Soft Hyphen: Makes sure words break with an "-" if there's not enough space.

Manage<b>&shy;</b>ment

&nbsp; —> Non-breaking Space: Prevents breaking between two words.

John<b>&nbsp;</b>Doe

To use HTML entities in the Block Editor, click on the three dots in the toolbar and select "Edit as HTML":

Screenshot of the backend of the Greyd website showing how to access the HTML editor

You can then insert your HTML entities and revert to the visual editor.

Screenshot of the HTML editor in WordPress

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us