[SOLVED] Background images on default theme

Post Reply
User avatar
Majbritt
Posts: 2
Joined: Sun Jul 30, 2017 10:36 am

[SOLVED] Background images on default theme

Post by Majbritt »

Hello wonder roots

How do you put background image into default theme
Like how the code should look

Thank you in advance for your help

Majbritt / Denmark
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: Background images on default theme

Post by wiz »

Before proceeding: Please make a COPY of your default theme and make changes on it (WonderCMS overwrites the default theme with each new update, don't make changes to the default theme.)

In your style.css, change

Code: Select all

body {
	color: #555;
	background: #eee;
	margin-bottom: 60px;
	font-family: "Lucida Sans Unicode", Verdana;
}
to

Code: Select all

body {
	color: #555;
	background: #eee url("http://yourWebsite.com/bg.jpg") no-repeat scroll left top / cover ;
	margin-bottom: 60px;
	font-family: "Lucida Sans Unicode", Verdana;
}
You have to upload your image and change http://yourWonderCMSWebsite.com/bg.jpg to the actual background image and this will work.
Post Reply