• Resolved livingdeadbeat23

    (@livingdeadbeat23)


    Hello, i have tried to find out about this but not really sure what i’m doing wrong. I’m having a go at making my own theme in gutenberg using the theme.json.

    since the last update all my pages are really thin and squashed in the editor, and the outer blocks don’t have the alignment options i set in theme.json

    If i switch to the 2023 theme they all work, i’ve compared theme.json files and i can’t see what on earth i’m doing wrong, they look the same. Can anyone help please?

    Here is screenshot of my theme in the editor : https://postimg.cc/0M4JVLFW

    And here is with 2023 theme set :
    https://postimg.cc/RJQ4Wt77

    Here is my theme.json alignment settings

    },
    
    "layout": {
    
    "contentSize": "55rem",
    
    "wideSize": "106.188rem"
    
    },
    
    "spacing": {
    
    "blockGap": null,
    
    "spacingScale": {
    
    "steps": 6
    
    },
    

    Thank you for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter livingdeadbeat23

    (@livingdeadbeat23)

    Ok i spent ages trying to work this out and as soon as i posted it on here i found out the problem 5 mins later. So Sorry to any mods.

    For anyone else having this problem it was my template files, the content tag needed to have layout constrained on it, as below

    <!-- wp:post-content {"layout":{"type":"constrained"}} /-->

    Thank you! I spent ages trying to find a solution to this!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Editor view doesn’t show alignment options’ is closed to new replies.