Skip to content

Site Title Block: Custom CSS classes not being outputted on the frontend #23813

Closed

Description

@alaczek

Site Title block has an option to add custom CSS classes in the Advanced section, but the class added there is not added to the element on the frontend.

To reproduce

  1. With Full Site Editing enabled in Gutenberg go to "Site Editor (beta)" in WP Admin.
  2. Start editing the site header. Select Site Title block.
  3. Open the Advanced section in the options column on the right-hand side of the screen.
  4. Add any custom CSS class name in the "Additional CSS class(es)" field. Click "Update design", and then "Save".
  5. Preview the site. Open the developer tools and inspect the site title element. Notice the custom CSS class is not there.
  6. The issue happens only on the frontend, the setting itself seems to be saved correctly.

Expected behavior
For the custom CSS class to be added to the site title elements' classes on the front end.

Screenshots
Editor view:

image

Preview:
image

Editor version (please complete the following information):

  • WordPress version: 5.4.2
  • Gutenberg plugin: 8.5.0

Desktop (please complete the following information):

  • OS: macOS 10.15.5
  • Browser Chrome 83.0

Activity

  1. added
    [Block] Site Title
    Needs Testing
    on Jul 9, 2020
  2. added
    [Status] Duplicate
    on Jul 9, 2020
  3. carolinan commented on Jul 9, 2020

    @carolinan
    Contributor

    Hi
    This is a duplicate of #21903, #22097 and possibly solved by #23007

  4. removed
    Needs Testing
    on Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Site Title[Status] Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions