, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

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 
Martyn


Posts: 7
 
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: 426
 
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
 
Martyn


Posts: 7
 
January 19, 2008 @ 4:30am
Thank you David

Martyn
 
h


Posts: 11
 
adding a fixed backgroundJune 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: 426
 
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
 

Post Message 







All Contents, Code, Scripts and Technologies Copyright 2003-2007 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.20605 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!