|
|||
|
Hello, I searched and could not find a similar topic?
I made a simple template using JTK 2.1 with a background image repeat-x, converted and got this in the index.php: <!-- body { background-image: url(<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>bg.png); background-repeat: repeat-x; background-color: #666666; } --> Then I moved forward to educate my self with JTK 3.0, got everthing in my template to become a joomla 1.5 stand alone, except the background image, I placed it in same spot, tried to convert, it changed nothing, heres what I got: <!-- body { background-color: #666666; background-image: url(images/bg.png); background-repeat: repeat-x; } --> Yet in the j1.5 th script for header looks like this for the image: <img src="templates/<?php echo $this->template ?>/images/header_logo.png" width="1000" height="195" /> I tried modifying code of <?php echo $this->template ?> and even put it in the .css to no availe. Any input would be apprieciated, and I like to say, excellent product, only took me a day to make a functioning template, THANKS BRIAN !! ![]() |
|
|||
|
Hello TITUS,
Thanks Your CSS does not need to have the PHP code it just does not work in CSS extensions. OLD version Code:
body {
background-color: #666666;
background-image: url(images/bg.png);
background-repeat: repeat-x;
}
Code:
body {
background-color: #666666;
background-image: url(../images/bg.png);
background-repeat: repeat-x;
}
Cheers, Brian |
|
|||
|
One other thing I forgot to mention PNG images and IE 6 etc.
has issues displaying. do a Google search on PNG Images and IE See this digg post: Digg - Transparent PNG Images in IE |
|
|||
|
Thanks for the rapid reply,
I tried this also: background-image: url(../images/bg.png); What is strange is using the above will not show in DW, IE6, or FIREFOX Yet this I can see it only in DW, not either browser, background-image: url(images/bg.png); Guess I could just convert to a .jpg ? Thanks!! |
|
|||
|
Just so you know there will be a non Joomla template conversion how to Tutorial to Joomla 1.5.X
And a Joomla 1.0.X to Joomla 1.5.X template conversion how to tutorial in the Joomla Template Kit 3.0 Cheers, Brian I theres even a special wizard for it. ![]() |
|
|||
|
Sorry haven't posted this sooner...
I'm not sure why the other two scenerios were so finicky, yet the solution was to simply wrap the mainbody in a divider, the code example is: index.php - <body> <div id="bg_image"> <div id="mainbody"> your site info(html/pictures etc), then ends with... </div> </div> </body> in template.css file just used the same as previous, body { background-image: url(../images/bg.jpg); background-repeat: repeat-x; margin-left: 0px; margin-top: 0px; } Thanks!!! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|