kasperisager/vanilla-bootstrap

Use Background image?

Closed this issue · 11 comments

ntimo commented

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.

ntimo commented

Well sure. I know that but do I have to add it to this theme?

ntimo commented

I mean which file? But thank you :)

ntimo commented

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?

ntimo commented

Okay, now it displays the image. But the sidebar buttons look so so wrong. Here is the link https://forum.japan-in-nrw.de/

ntimo commented

sorry that the page was down, now its up and running again.

ntimo commented

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.