Home › Forums › General Issues › No p tags with wysiwyg field › Reply To: No p tags with wysiwyg field
Hello. I’ll add my situation on this thread.
<sup> going on in a lot of places. I would love to just use a ‘text’ field, but because of this – I have to use WYSIWYG fields for almost everything.
The prime example, is that we have an H2. It needs to have a WYSIWYG.
It is used in the template like this:
Now because the field is a WYSIWYG, that generates something like this:
<h2><p>Something with a <sup>™</sup></p>/h2>
And – you can see how that is a problem with my article type system / styling wise (as well as crawler document structure.
I *could* remove all p tags from the editor… but I also need those in all of the other cases.
Any ideas – or ways you’ve worked with this?
An option in the field would be the best – but I can also just teach my team to write
sup in the headings / since it’s only a third of them. A WYSISYG that is known to be only one line etc. ?
If the WYSISYG weren’t so tall by default, that would also be a part of my choices.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re hard at work on ACF 6.1, and Beta 1 is now available 🚀— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Let’s take a look 🧵https://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.