Using a background image
Permalink Browser Info Environment
Is there a way to use an uploaded image as a background for every page on the site? Also, is it possible to have some pages use a different background image? I can change the color for the whole site, but would prefer to use an image.
Thank you!
Thank you!
Type: | Discussion |
---|---|
Status: | New |
No, with the current version, it is not possible to have custom images as a background (unless you know CSS). However, I have made note of this, and will see about adding this as a new feature / option in the next version release (1.7), to be released very soon!
Here is what you do to set a background image. (Assuming you are using the default template.)
Step one: Go to - public_html/concrete/themes/default/images
and upload your picture
Step two: Edit the CSS
Go to - public_html/concrete/themes/default/main.css
Now at the very top of the file you should see:
You want to add this code right after it:
This will put an image as the background, center it and repeat it vertically all the way down.
So the ending code block should look like this:
Hope that helps!
Step one: Go to - public_html/concrete/themes/default/images
and upload your picture
Step two: Edit the CSS
Go to - public_html/concrete/themes/default/main.css
Now at the very top of the file you should see:
body {/* customize_background */ background-color: #ffffff; /* customize_background */ padding: 0px; margin: 0px;
You want to add this code right after it:
background-image:url(images/your_image_name.gif); background-position:center; background-repeat:repeat-y;}
This will put an image as the background, center it and repeat it vertically all the way down.
So the ending code block should look like this:
body {/* customize_background */ background-color: #ffffff; /* customize_background */ padding: 0px; margin: 0px; background-image:url(images/your_image_name.gif); background-position:center; background-repeat:repeat-y;}
Hope that helps!
Thank you! This is very helpful.
Glad it's helpful. You're welcome. :)
I will keep an eye out for the new version. Otherwise, I like the template.