- Posts: 6
- Thank you received: 0
Different template styles different bg images
-
novisub
Inactive member - Topic Author
- New Member
Less
More
11 years 6 months ago #29834
by novisub
Different template styles different bg images was created by novisub
Hey
I can´t solve it by myselfe so I need Your help.
Got some different tempalte styles within my site. Now I want for each style a special background image.
I tried so much but nothing is working.
Thanks so much for help
Bye
Klaus
I can´t solve it by myselfe so I need Your help.
Got some different tempalte styles within my site. Now I want for each style a special background image.
I tried so much but nothing is working.
Thanks so much for help
Bye
Klaus
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 6 months ago #29841
by ivan.milic
Replied by ivan.milic on topic Different template styles different bg images
In index.php of template locate this:
change it to this:
open each of /styles/styleX.php
comment out first 3 code lines:
//$backgroundImage = ....
//$backgroundImageName = ....
//$backgroundColor = ....
Code:
if($templateStyle) {
require(YOURBASEPATH."/styles/style".$templateStyle.".php");
}else{
$backgroundImage = $this->params->get("backgroundImage", "slideshow");
$backgroundImageName = $this->params->get("backgroundImageName", "bg_static.jpg");
$backgroundColor = $this->params->get("backgroundColor", "#FFFFFF");
change it to this:
Code:
$backgroundImage = $this->params->get("backgroundImage", "slideshow");
$backgroundImageName = $this->params->get("backgroundImageName", "bg_static.jpg");
$backgroundColor = $this->params->get("backgroundColor", "#FFFFFF");
if($templateStyle) {
require(YOURBASEPATH."/styles/style".$templateStyle.".php");
}else{
open each of /styles/styleX.php
comment out first 3 code lines:
//$backgroundImage = ....
//$backgroundImageName = ....
//$backgroundColor = ....
Please Log in to join the conversation.
Time to create page: 0.156 seconds