ACF wysiwyg Field is auto formatting HTML, adds < paragraph > tags, which I want to disable but I don’t find any options.
In coding, we used to do this: the_field(‘myfield’, false, false) which automatically turns off the HTML formatting for that specific Wysiwyg editor field.
Step-by-step reproduction instructions:
Please write the steps needed to reproduce the bug.
Thanks for bringing this up!
We currently recommend to change the Paragraph block tag to a <div> so that it doesn’t print the HTML on the frontend, but formatting is an option we will be adding to the dynamic selector very soon.
Thanks so much for this. For the longest while I have struggled because it was adding a blank <p> at the beginning of all of my blocks of text. This small edit fixes all of that.
I’m finding that unless I specifically want body text, it’s simply better to tag the paragraph blocks as either <div> or <span> to eliminate any unwanted styling.
FSE more generally adds a certain number of <p> tags automatically depending on the Gutenberg version, but in the case of a non block theme, we did notice some issues, hence why we removed this filter if the theme is not block based.