更改impresspages上的默认图库图像大小

时间:2014-12-09 09:58:28

标签: json themes size impresspages

我尝试更改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"或"画廊" ?

1 个答案:

答案 0 :(得分:2)

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

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

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

另一点,当更改此配置时,您必须重新安装主题以进行更改以采取操作。为此,您需要安装不同的主题并安装回当前主题。