admin管理员组文章数量:1334342
I would like all my site pages to have a background-image, such as:
body {
background-image: url(.jpg);
background-size: cover;
}
Using additional CSS field does not work. What can be the solution, please? Thank you
I would like all my site pages to have a background-image, such as:
body {
background-image: url(https://5e97-e8af726b4e97.wptiger.fr/wp-content/themes/twentyseventeen/assets/images/header.jpg);
background-size: cover;
}
Using additional CSS field does not work. What can be the solution, please? Thank you
Share Improve this question edited Jun 6, 2020 at 13:22 m4n0 1,36410 silver badges22 bronze badges asked Jun 6, 2020 at 9:11 Guillaume BuizardGuillaume Buizard 91 bronze badge 1- Welcome to WordPress Development. I hope you find the answer(s) you are looking for. Our site is different from most - if you have not done so yet, consider checking out the tour and help center to find out how things work. – Matthew Brown aka Lord Matt Commented Jun 6, 2020 at 15:07
1 Answer
Reset to default 0I think your CSS is OK, (I am not an expert at CSS but I am currently learning it myself).
I think you issue is a cerficate error on the page you are hosting
try this:
body {background-image: url("https://image.shutterstock/image-vector/sample-stamp-grunge-texture-vector-600w-1389188336.jpg"); background-size:cover;}
I tested it in the additional CSS on my page and it worked.
I also added it to my stylesheet in my child theme and that also worked.
Hope that helps!
Cheers.
本文标签: Inserting a backgroundimage
版权声明:本文标题:Inserting a background-image 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742369324a2461914.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论