admin管理员组文章数量:1200397
In a recent update to WordPress, the following responsive device preview system was added to the Block Editor:
Easy to hide them via:
.block-editor-post-preview__button-resize {
display: none;
}
But, how can we disable this feature so when you click on the preview button, it opens up a front-end preview of the post on a new tab. Just as it used to be.
In a recent update to WordPress, the following responsive device preview system was added to the Block Editor:
Easy to hide them via:
.block-editor-post-preview__button-resize {
display: none;
}
But, how can we disable this feature so when you click on the preview button, it opens up a front-end preview of the post on a new tab. Just as it used to be.
Share Improve this question asked Oct 7, 2020 at 7:40 Christine Cooper♦Christine Cooper 8,8877 gold badges60 silver badges93 bronze badges 2- 1 This is not yet possible; there's an existing issue for this at github.com/WordPress/gutenberg/issues/23126 – Will Commented Feb 2, 2021 at 18:09
- You can also try this: wordpress.stackexchange.com/questions/387527/… – Bart Commented Jun 26, 2023 at 23:44
1 Answer
Reset to default 1Still no way to disable them from what I can see, but the CSS you gave didn't do what I wanted, so I used this:
.edit-post-post-preview-dropdown .components-menu-group:first-child {
display: none;
}
This just keeps the 'Preview in new tab' option.
本文标签: Disable device preview options in the block editor
版权声明:本文标题:Disable device preview options in the block editor 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738564125a2099811.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论