Skip to content

Allow Long Word Overflow and Prevent Heading Word Breaks

By default when a word is too long inside of a heading the word will break onto the next line. This is done to prevent the text from overflowing on top of the content next to it or outside of the browser window.

In some cases you may want your text to overflow. For example a very large heading constrained by a parent column width that doesn’t have anything next to it that could conflict.

Generally, I keep the theme as bloat free as possible so there isn’t an option to allow for text overflow in the heading element. This isn’t something most headings will ever need. But you can still easily allow for text to overflow by using the theme’s text wrap utility classes.

Simply add the classname wpex-text-nowrap to the element’s extra classname field to prevent heading word breaks.

Back To Top