HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

How to add a background to website

Login / Search

 [ Join | More ]
 Add topic 
#104689 (In Topic #20434)

Non-joined user

I know this is a really amatuer ish question but How do i add a background to ocportal. I tried to add one by going to manage themes and adding/uploading one myself but it wont show in the background. Why and how is the correct/easy way to do it? 
Back to the top

Community saint

Go to Admin Zone → Style → Manage themes → Choose → Edit CSS: global.css and find:
      background: url('{$IMG;,outer_background}');
and change it.

On my site I use 3 layered images to get the background I want, and it goes something like this …
      background: url('{$IMG;,page_gl_stitch}') left top no-repeat fixed, url('{$IMG;,page-gr}') left top repeat-x fixed, url('{$IMG;,page}') top left repeat, #e1d9e5;
The CSS in ocPortal often uses 'Comcode' and it pays to use the syntax that the developers have used in their CSS.

Your usage will vary, of course, but remember that the order that you call the images is important. Simply put; the first one called lays at the bottom, and the last one called is stacked uppermost.

Good luck, and if you run into any problems, give a shout in here …!!


Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: