Skip to content

Do not show the Global Styles sidebar in edit site if theme doesn't support theme.json #27394

Closed as not planned

Description

@oandregal

Steps to reproduce the bug:

  • Activate a FSE theme that doesn't have a theme.json
  • Go to the edit site.

The expected behavior is that the "Global Styles" sidebar shouldn't be shown, as the theme hasn't declared support.

Activity

  1. added
    [Type] Bug
    Global Styles
    on Dec 1, 2020
  2. youknowriad commented on Dec 1, 2020

    @youknowriad
    Contributor

    theme.json is not just about global styles. What happens if I use a theme.json to enable/disable some features in the editor but maybe I still don't want the global styles sidebar?

  3. oandregal commented on Dec 1, 2020

    @oandregal
    MemberAuthor

    Depending on where we land at #27295 (comment) the exact checks we need for this may vary. Probably it's worth investigating this issue after 27295 is tackled.

  4. skorasaurus commented on Jun 1, 2022

    @skorasaurus
    Member

    Is this still an issue ?

  5. ramonjd commented on Apr 8, 2024

    @ramonjd
    Member

    I think this issue is still relevant. See discussion on #52750

  6. t-hamano commented on Sep 25, 2026

    @t-hamano
    Contributor

    With #73971, the issue should no longer occur because a global styles CPT is created internally, regardless of whether the active theme has a theme.json file.

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

    Global Styles[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions