Use Background image?
Closed this issue · 11 comments
Hi there,
I wanted to ask if its possible to add an background image to the theme? So that I can have a nicly looking background that matches the style of my main webpage :) Thank you in advance.
Thanks.
Timo
Sure thing! Have a look at https://css-tricks.com/almanac/properties/b/background-image/ for a guide on how to add background images in CSS.
Well sure. I know that but do I have to add it to this theme?
I mean which file? But thank you :)
You can add it here: https://github.com/kasperisager/vanilla-bootstrap/blob/master/design/custom.css
Okay, I added this code to the custom.css but it does not work:
body { background: url(https://somedomain.domain/background.jpg); }
There may be quite a few reasons as to why it doesn't work. Is your site online?
Okay, now it displays the image. But the sidebar buttons look so so wrong. Here is the link https://forum.japan-in-nrw.de/
sorry that the page was down, now its up and running again.
I tried making the background of the page sidebar white with:
page-sidebar { background-color: #ffffff;
}
but it does not work :(
Isn’t .page-sidebar
supposed to be a class? Like this:
.page-sidebar { background-color: #fff; }
I'll go ahead and close this as it not related to the theme itself but rather a very specific customisation thereof.