• Resolved Simon W?mmerfors

    (@simonwammerfors)


    Hi

    This is probably not a specific Chaplin issue, but maybe someone here have some knowledge of where to look to solve this.

    After I updated to WordPress 5.8 and created a theme.json I discovered that this led to some issues in the editor in my Chaplin child theme. There’s some CSS issues that causes the content in the editor to no longer be centered (instead it’s aligned to the left), and the buttons for wide and full-width justification is also gone (and blocks with full-width applied earlier no longer span the full width in the editor).

    I have also tested this in a local install. I made completely new child themes of the latest versions of Chaplin and Twenty Twenty-one (minimal child themes with just a basic style.css file). The results were identical: both parent and child themes works fine with WP 5.8, but when I create a theme.json file the child themes display these issues. The parent themes are still fine.

    Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • [email protected]

    (@theresawebdevgmailcom)

    Can you explain how this was resolved?

    Thread Starter Simon W?mmerfors

    (@simonwammerfors)

    Well, turned out that the issue had to do with syntax in the theme.json of the child theme. The json file actually worked fine (I added padding support for some blocks, and the padding controls appeared) but the system seems fragile och apparently there was some kind of problem with the syntax. I never could isolate what is was, but when I copied and pasted some example code from another part of the Gutenberg documentation, and the altered it, suddenly the issues disappeared.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editor issues when using theme.json in child theme’ is closed to new replies.