Skip to content

Create Block Theme: Theme tags are incorrectly capitalized when saving a theme #818

Open

Description

@henriqueiamarino

Problem

When saving a theme using the Create Block Theme plugin, some WordPress theme tags are output with capitalized letters — for example Blog, Block-Styles, RTL-Language-Support — instead of the correct lowercase, hyphenated format (blog, block-styles, rtl-language-support). This causes the tags to be invalid or unrecognized in the WordPress theme directory, and fails the formatting conventions expected in style.css theme headers.

Steps to Reproduce

  • Set up a theme with tags via the Create Block Theme interface
  • Add more tags to the theme through the style.css file
  • Save the theme using Create Block Theme
  • Check style.css and inspect the tags
  • Note incorrectly capitalized tag values (e.g., blog becomes Blog).

Expected Behavior

All theme tags are written in lowercase with hyphens, matching the WordPress theme directory format — e.g. blog, block-styles, rtl-language-support, threaded-comments, translation-ready.

Actual Behavior

Some or all tags are capitalized or inconsistently cased in the output.

Environment

Plugin: Create Block Theme
File affected: style.css (theme header)

Activity

  1. added
    bugSomething isn't working
    on Apr 15, 2026
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions