Adding a background image

From Osclass Enterprise
Jump to: navigation, search

If you want to add a background image on any part of your site, you need to modify your header.php file, inside your theme folder (modern by default). You can also modify the CSS file your theme is using and add the following code.

Note that in this example we will be adding a background image for the body of the page.

In case of HTML:

<style type="text/css">
    body {
        background-image: url('{url of image}');
    }
</style>


In case of CSS:

    body {
        background-image: url('{url of image}');
    }

It's better to use a relative path when pointing to the url of the image. If not, you should use an absolute path to the image.