Skip Navigation

[Resolved] Multiple Lines field type not getting Layouts' Visual cell text-align center

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Clifford 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#905985

A Types custom field (multi-line textarea) is centered in the Layouts Visual Editor but renders without the text-align: center.
Video demonstrating the issue: hidden link (link expires in 1 month)

#906015

Hello,

It is expected result, the Types plugin will output the "textarea" value in a HTML P tag, so it will conduct the problem you mentioned above, you can simply change the outsider P tag to HTML DIV tag, for example:

<div style="text-align: center;">[types field='test-ml'][/types]</div>

And test again.

#906283

Okay. I'm personally undecided if I'd call this a bug still or not - because multiline does not have WYSIWYG-type alignment controls - but I appreciate the workaround.