Alert users that Extra CSS Classes added on Form page do not render in HTML Output

Created on 19 January 2011, over 14 years ago
Updated 19 May 2025, 18 days ago

I've added a class to the Extra CSS classes field, but that class fails to render on my site. I'm using the Sky theme, but I've also tested with Bartik.

Where in the HTML should that CSS class render? I assume:

<fieldset class="fieldset form-wrapper customClassGoesHere">

Is that not correct?

✨ Feature request
Status

Needs work

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States scottrouse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    It's easy to miss that CSS classes and ID's added on the "Manage form display" page, will only be added to the form, not the display ... Could it be emphasized somehow?

    Perhaps a small help text could be added on the "Manage form display" page (/admin/structure/types/manage/article/form-display) under the "ID" and "Extra CSS classes" input fields?

    ID
    [ ]
    Note: This ID will only be added to the form page, not display.

    Extra CSS classes
    [ ]
    Note: This class will only be added to the form page, not display.

    The "Manage display" page may not need help text?

Production build 0.71.5 2024