Forum

Thread tagged as: Question

Add a class to the attached code.

Hi,

How do I add a class in the below mentioned code.

<perch:content id="Page-title" type="textarea" label="Page title " textile="true" editor="markitup"/>

Damian McCracken

Damian McCracken 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

A textarea with Textile formatting can output all sorts of HTML - what are you hoping to attach a class to?

You might be best to look at adding a class to the containing element.

Hi Drew,

<perch:content id="Page-title" type="textarea" label="Page title " textile="true" editor="markitup" class="classname"/>

I'm working it this way but it does not attaches the class in this format?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What are you hoping to attach a class to?