- Posts: 4
- Thank you received: 0
Adding solid background that's in a fxd position
-
Agent68
Inactive member - New Member
Less
More
14 years 2 months ago #2777
by Agent68
Replied by Agent68 on topic Re: Adding solid background that's in a fxd position
Hi, can you give a summary on how to achieve this? Thanks in advance.
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 2 months ago - 14 years 2 months ago #2778
by trey-braid
Replied by trey-braid on topic Re: Adding solid background that's in a fxd position
open up template.css.php and find line 10 i believe...
just name your background graphic bg_1 or whatever you want to call it--- important to put bg_ before it
all milos had me do was add " fixed " to the end... i also added center as well so it would be centered..
background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_<?php echo $backgroundImage; ?>.png) center fixed
;
..as you can see they are using a php echo to pull in the image...
hope this helps
trey
just name your background graphic bg_1 or whatever you want to call it--- important to put bg_ before it
all milos had me do was add " fixed " to the end... i also added center as well so it would be centered..
background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_<?php echo $backgroundImage; ?>.png) center fixed
;
..as you can see they are using a php echo to pull in the image...
hope this helps
trey
Last edit: 14 years 2 months ago by trey-braid.
Please Log in to join the conversation.
-
Agent68
Inactive member - New Member
Less
More
- Posts: 4
- Thank you received: 0
14 years 2 months ago #2779
by Agent68
Replied by Agent68 on topic Re: Adding solid background that's in a fxd position
So template_css.php now has this:
<?php if ($backgroundImage!="none") { ?>
background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_1<?php echo $backgroundImage; ?>.png) center fixed;
<?php }else{ ?>
Created a folder the background image (bg_1)in
and then add this to the template_css.css file?
body {
font-size:12px;
color:#000000;
background:#333333 url(/templates/hot_sportal/images/bg_1.png) fixed;
}
<?php if ($backgroundImage!="none") { ?>
background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_1<?php echo $backgroundImage; ?>.png) center fixed;
<?php }else{ ?>
Created a folder the background image (bg_1)in
and then add this to the template_css.css file?
body {
font-size:12px;
color:#000000;
background:#333333 url(/templates/hot_sportal/images/bg_1.png) fixed;
}
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 2 months ago #2780
by trey-braid
Replied by trey-braid on topic Re: Adding solid background that's in a fxd position
you dont need to add anything to the template.css file... everything else in the template.css.php looks fine... w
your website?
trey
your website?
trey
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 2 months ago #2782
by trey-braid
Replied by trey-braid on topic Re: Adding solid background that's in a fxd position
just place the image in the image's folder and not the new folder you created...
Please Log in to join the conversation.
Time to create page: 0.083 seconds