I created a channel "project" with several channel fields. For my question I am using the example of a field called "White Header", the short name is white_header
and is is of Type Text Input.
When I output the field in my template, the content of the field of an entry is surrounded by
elements, which I don't need.
{exp:channel:entries channel="projekt" limit="1" orderby="date" sort="desc"}
<h2 class="content__header">{white_header}</h2>
{/exp:channel:entries}
The resulting HTML is:
<h2 class="content__header"><p>White Header Content</p></h2>
I would like the HTML to be:
<h2 class="content__header">White Header Content</h2>
What I tried:
- I changed the default text formatting from
Markdown
toNone
, but it didn't change anything - Tried to find a solution in the documentation
- Tried to find a solution with google, but did only find an entry about "grid" (what is grid?) that didn't help in my situation.
How can I avoid, that ExpressionEngine outputs HTML elements, that I do not need?
What would alternatively help: Is there a way to assign a class to the auto generated <p>
element?
Update all existing channel entries with your new formatting choice?
when you changed the Default Text Formatting for your fields?