Forum
Disable wrapping P tags if there is only one paragraph or convert new lines to B...
Currently we have this HTML markup:
<h3 class="no-mobile">Admission Free, Open 7 days a week,<br>10am - 5pm. Closed 24 - 26 December</h3>
We don't want the users to be able to mess with the H3 (and it's class) so we turned it into
<h3 class="no-mobile"><?php perch_content('Admission heading'); ?></h3>
Trouble is what type of field to choose now. We need the field to be WYSIWYG (or at least linebreak-aware) and NOT wrapping content in P tags. I understand why text block does that, but is there a workaround?
What's the purpose of the
<br>
?It's a narrow sidebar. And they need to have control over how are the words wrapped.
How about using a pipe character?
and then:
Good enough. Thanks.