Forum

Thread tagged as: Question

Append a Class attribute in perch content ?

I need to add a class attribute in perch.

Here is my code :

<p class="lead"> <perch:content id="default_page_heading_text" type="textarea" label="default_page_heading_text" textile="true" editor="markitup" /> </p>

Damian McCracken

Damian McCracken 0 points

  • 6 years ago

I could be corrected by someone but I think the editors used in Perch all put <p>...</p> tags around textarea fields. Therefore you'd be best changing your code as below and changing your CSS to target div.lead p

<div class="lead"> <perch:content id="default_page_heading_text" type="textarea" label="default_page_heading_text" textile="true" editor="markitup" /> </div>