最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Change default values of Gallery Block settings

programmeradmin7浏览0评论

How to change the Default Settings of Gutenberg Gallery Block

When creating a new Gallery Block, I want the default values to be Columns: 2 and Crop Images: false

How to change the Default Settings of Gutenberg Gallery Block

When creating a new Gallery Block, I want the default values to be Columns: 2 and Crop Images: false

Share Improve this question edited Jan 15, 2020 at 15:15 An Tran T. asked Jan 15, 2020 at 15:09 An Tran T.An Tran T. 1111 silver badge3 bronze badges 1
  • It is possible, see wordpress.stackexchange/a/375528/33900 (Javascript) and wordpress.stackexchange/a/426428/33900 (PHP) – cweiske Commented Aug 14, 2024 at 19:44
Add a comment  | 

1 Answer 1

Reset to default 1

I don't think this is possible in Gutenberg for the gallery block.

There still isn't a unified way to modify these types of settings for blocks either (the panel, typically on the right-side of a desktop screen, is collectively called the Inspector Controls)

发布评论

评论列表(0)

  1. 暂无评论