Different template styles different bg images

  • novisub
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 6 months ago #29834 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

Please Log in to join the conversation.

More
11 years 6 months ago #29841 by ivan.milic
In index.php of template locate this:
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
Powered by Kunena Forum