CMS: Formatting a Text Element Connected to a Rich Text Collection Field

3 min read
When a text element is connected to a rich text field in your collection, the element's formatting depends on how you customize the available themes. The formatting set in the Editor is ignored.
The formatting of the text does not need to be uniform throughout. Different parts of the content can be formatted differently.
Important:
Use rich content to unlock a more extensive set of content editing tools. Rich content allows you to edit text, images and video directly from within the CMS. You can add, edit, and delete the fields in the same way you would edit any other field type and display the content on a dynamic page. Learn more about rich content and the CMS.
In this article, learn about:

Formatting rich text by theme

Set your rich text field's formatting using text themes in the CMS. These text theme settings link to the definitions set in the Editor.
Use this table to see what themes to customize in the Editor to change the rich text format in the CMS:
Theme in Collection
Corresponding Theme Name in the Editor
Page Title
Heading 1
Section Title
Heading 2
Content Title
Heading 3
Large Text
Paragraph 1
Normal Text
Paragraph 2
Small Text
Paragraph 3
For example, let's say in the collection you enter two lines of text into a rich text field. You set the first line's formatting to the Section Title theme, and you set the second line's formatting to the Normal Text theme. 
A screenshot of text themes being applied to the Rich Text field in the Content Manager.
Now, in your site Editor, you change the Heading 2 theme to be Arial 100px. When the rich text field's content is displayed, it uses the corresponding Title style. The first line of your content is formatted as Arial 100px regardless of what it looked like in the CMS because the element applies the Editor's Heading 2 theme.
Remember, themes are defined site-wide. Use themes when you want to remain consistent with the rest of your site. If the formatting of a theme in your site changes, you won't have to worry about changing the formatting of the content in your rich text fields. 

Customizing line spacing of rich text by theme

Use the Site Theme panel to adjust character and line spacing of the text styles on your site. Adjustments you make in the Site Theme panel automatically apply to your site's rich text. 

To customize line spacing of rich text by theme:

  1. Click the Site Design icon  on the left side of the Editor.
  2. Hover over Custom Theme and click Customize.
  3. Click the Text button.
  4. Hover over the required text style and click the Edit icon .
  5. Use the sliders to adjust the character and line spacing.
Screenshot of the Customize Text Theme panel highlighting the Line Spacing slider.
  1. Click Apply.

Did this help?

|