ghinton Posted December 6 Posted December 6 (edited) I would like to add an body background image for my site. What do I need to add for the CSS? I know for the header it is .ipsHeader__primary { background-image: url(https://www.mysitename.com/images/header.jpg); width: 100%; height: 100px; background-position: center top; background-size: cover; background-repeat: no-repeat; } Also, I would like to suggest maybe making it a little easier for people to be able to do so rather than having to add custom CSS Edited December 6 by ghinton SC36DC 1
SC36DC Posted December 6 Posted December 6 This is where @Ehren custom themes will come in handy when released!!!
Drewfus Posted December 6 Posted December 6 .ipsLayout__main { background-image: url(https://www.mysitename.com/images/header.jpg); width: 100%; height: 100px; background-position: center top; background-size: cover; background-repeat: no-repeat; } beats23 1
Drewfus Posted December 6 Posted December 6 You could also use your resources .ipsLayout__main { background-image:url({resource="custom/header.jpg" app="core" location="front"}); width: 100%; height: 100px; background-position: center top; background-size: cover; background-repeat: no-repeat; } ghinton 1
Recommended Posts