1

我尝试更改 theme.json 上的默认画廊大小,但结果始终相同(正方形大小的图片,如 200 x 200 像素)

"imageGallery": { /* For responsiveness and optimization it should the size as it would appear on the widest block */
            "width": 295,
            "height": 164
        }

"gallery": { /* For responsiveness and optimization it should the size as it would appear on the widest block */
                "width": 200,
                "height": 164
            }

我用的是新版的ip 4.4.0,旧版没有这个pb。

那么我如何更改默认画廊图像大小?哪个变量真正的“imageGallery”或“gallery”?

4

1 回答 1

2

配置基于小部件的名称。v4.x 只有“画廊”小部件。“imageGallery”是早期版本的遗留物。

此配置定义应裁剪的图像的大小。尽管如此,一些主题并不关心真实的图像大小。它们强制图像形成特定数量的列。这样可以确保图像占据整个宽度(从左到右)。

如果要更改此行为,则需要覆盖主题样式或此小部件的外观。

另一点,当更改此配置时,您必须重新安装主题才能使更改生效。为此,您需要安装不同的主题并重新安装当前主题。

于 2014-12-09T12:11:49.457 回答