|
 |
Due to the volume of spam happening on our forums, posting is now restricted to verified members only. If you're not verified, drop us a note with your username.
|
|
 Home > FlexCMS Support Forum > User Help > FAQ's: Templates > Adding a background picture...

FlexCMS Support Forum


Adding a background picture... Started January 18, 2008 @ 1:16pm by Martyn
 |
Post Message |
|
|
Adding a background picture... | January 18, 2008 @ 1:16pm | I am using the Circuit template and as it is a fixed width I would like to add a pattern background(or change the colour) outside the website. What file do I edit please?
Martyn |
|
|
|
Last Edit: January 18, 2008 @ 1:17pm by Martyn | |
|
|
|
| |
DCSun Administrator

Posts: 625 |
|
|
| January 19, 2008 @ 2:12am | Martyn,
You'll need to edit the "template.php" file, located in the "templates" folder, then the folder for the specific template (in this case "photo_top-circuits").
Find this line: 
Code
$TemplateTags['bodytag'] = '<body bgcolor="#ffffff" text="'.$Colors['Text'].'" link="'.$Colors['Link'].'" vlink="'.$Colors['VLink'].'" alink="'.$Colors['ALink'].'" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" rightmargin="0" style="margin:0">'; |
| and replace it with this: 
Code
$TemplateTags['bodytag'] = '<body bgcolor="#ffffff" background="'.$TemplateImagesURL.'/bg.gif" text="'.$Colors['Text'].'" link="'.$Colors['Link'].'" vlink="'.$Colors['VLink'].'" alink="'.$Colors['ALink'].'" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" rightmargin="0" style="margin:0">'; |
| The "bg.gif" portion can be changed to whatever file name you like. Then upload that file to the same folder as that "template.php" file. You'll also need to make the outer area of the "1a.gif" and "3a.gif" images (contained in that same template folder) transparent to allow your background to show through there.
David

 FlexCMS v3.2 Has Been Released! |
|
|
|
|
|
|
| |
|
|
| January 19, 2008 @ 4:30am | Thank you David
Martyn |
|
|
|
|
|
|
| |
|
|
adding a fixed background | June 6, 2008 @ 10:57pm | i can change the image, yes. but no relevant tag that I have tried...and I admit I am a novice...gets me the "fixed" attribute ..or the no-repeat attribute. Can someone tell me where to put this, it will help me understand some general guidelines for skinning flexcms. i have a client who has a "watermark" background and I want it fixed in the lower left corner.
ideas? |
|
|
|
|
|
|
| |
DCSun Administrator

Posts: 625 |
|
|
| June 7, 2008 @ 2:22am | H,
Look in the template.php file for the <style> section. There you can add whatever you need to control your background image. Something like this should work:
Code
body { background-image: url("'.$TemplateImagesURL.'/your_bg.gif"); background-repeat: no-repeat; background-attachment:fixed; background-position: bottom left } |
|
David

 FlexCMS v3.2 Has Been Released! |
|
|
|
|
|
|
|


|
|
 | MEMBERS 
|

|
|