我正在使用Sunrise Theme 来自s5themes。com,我想知道在各个页面中是否可以有不同的标题图像,因为从我可以看出,它们在主页上显示标题图像时使用相同的CSS代码。
这是主页的屏幕截图,将图像显示为标题

这是一个页面(关于我们)的截图,它使用了和标题相同的图像(棕色纹理和绿色部分),只是看起来放大了。

我试着深入研究代码,我相信这就是风格中的一部分。处理它的css。
CSS
.header-wrapper {
background: #333;
background-image: url(img/wood-only.png);
background-attachment: fixed;
background-size: cover;
min-height: 200px;
所以我编辑了上面的代码,不幸的是,它也会影响主页中的图像,我尝试将背景大小设置为
background-size: auto;
理想情况下,我可以编辑模板文件,但我不熟悉WordPress的结构,现在我不知道如何处理。
最合适的回答,由SO网友:lozadaOmr 整理而成
通过使用JetPack插件,我在不太依赖创建新模板的情况下成功地解决了这个问题。
并利用其添加自定义CSS的能力
这是CSS 添加了行I
body.page .header-wrapper {
background: #333;
background-image: url(http://image-url/image.png);
background-attachment: fixed;
background-size: auto !important;
min-height: 200px;
}