wordpress:扁平主题,更改横幅大小 [英] wordpress: flat theme, change banner size

查看:26
本文介绍了wordpress:扁平主题,更改横幅大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个新的扁平化主题的博客.我以前没有用过这些,所以如果我没有很好地解释自己,请原谅.

I am setting up a blog with a new flat theme. I haven't used these before so please excuse me if I don't explain myself well.

这个主题,Cordillera,带有一个文本分层的全屏横幅超过它.外观很棒,但我真的希望能够 a) 能够自己设置横幅大小或 b) 让它自动调整容器高度到上传的图像.两者都小于全屏,这会拉起其下方的内容.

This theme, Cordillera, comes with a full screen banner which has text layered over it. The look is great but I'd really like to be able to either a) be able to set the banner size myself or b) have it automatically adjust the container height to the image uploaded. Both being smaller than full screen, which would pull up the content below it.

在我不知道该看什么来调整它之前没有使用过这种类型的主题.您可以查看上面链接的演示或我的博客.我什至不确定要提取出哪部分代码才能让您开始.如果你去我的博客,有问题的部分是天使艺术的部分.

Not having used this type of theme before I'm not sure what to look at to adjust this. You can check out the demo linked above or on my blog. I'm not even sure what portion of code to pull out to have you start with. If you go to my blog, the section in question is the one with the angel art.

非常感谢您的关注!我感谢所有帮助!

Thanks so much for looking! I appreciate any and all help!

推荐答案

尝试将此 CSS 添加到您的站点中:

try to add this CSS into your site :

.top-banner {
    width: 100%!important;
    height: 300px!important;
    background-size: contain!important;
}

转到外观>自定义>附加CSS"

go to "Appearance > Customize > additionnal CSS"

这篇关于wordpress:扁平主题,更改横幅大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆