尽管设置了contentSize和wideSize,为什么布局还是全角/

问题描述 投票:0回答:1

我在 theme.json 中添加了布局对象和属性 contentSize : 620px 、 WideSize : 1000px 但前端和编辑器中的布局仍然是全宽

在编辑器中,我可以在布局选项卡下看到我的设置值,但我在编辑器中或前端都看不到它的效果

{
  "$schema": "https://schemas.wp.org/wp/6.2/theme.json",
  "settings": {
    "appearanceTools": false,
    "layout": {
      "contentSize": "620px",
      "wideSize": "1000px"
    }
  }
}

链接到本地开发站点 如果出现提示,请输入以下信息。 用户名:萨克斯 密码:聪明

Screen Shot of the editor

Screen Shot of layout tab in editor

wordpress wordpress-theming wordpress-gutenberg wordpress-block-theme
1个回答
0
投票

我有同样的问题,无论我做什么,商店总是全宽。请帮忙!

© www.soinside.com 2019 - 2024. All rights reserved.