wordpress 6.2 是否删除了 alignfull 和 lignwide?

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

我正在使用自定义块主题,我支持 alignwide 和 full。现在我在 6.2 上测试我的主题,宽和全的按钮没有显示。

在我的 functions.php 文件中我有这个:add_theme_support( 'align-wide' );

在我的 theme.json 文件中我有: "layout": { "contentSize": "860px", "wideSize": "1100px" },

所以现在在前面,如果我手动添加类:alignfull 或 alignwide,它确实有效。但在编辑器(帖子、页面和网站)中,我有一个组、封面和其他块,在对齐选项中没有 alignfull 或 alignwide。

知道哪里出了问题以及如何解决它吗?

wordpress editor
1个回答
0
投票

好吧,我至少为我找到了这个问题,所以也许它会帮助其他人:在我的模板上,在我添加的帖子内容评论中:{“layout”:{“type”:“constrained”}}

修复了对齐问题。

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