I want to linebreak a WordPress site title over two lines at a specific point in the text.
Due to the WordPress content filter 'wpautop', the <br>
tag (aka <br/>
or <br />
) is disabled seemingly site-wide. I understand the motive behind disabling the tag, but I'd like to know what is deemed the 'correct' way of line breaking with CSS in lieu of the traditional tag.
To clarify, I want to achieve this without the <br>
tag:
<a href="https://example.com/">This is a<br>Site Title</a>
EDIT: Ideally I would achieve this functionality without having to hard-code the site title with markup so users are still able to amend the title in the admin setting. Is there a way to wrap after nth word or nth char with CSS for example?