Is there custom style?

  • yiannisps
    Inactive member
  • Topic Author
  • Visitor
  • Visitor
12 years 3 months ago #21779 by yiannisps
Is there custom style? was created by yiannisps
Although the are settings for background, fonts etc they are not doing nothing. It works only with styles 1,2 or 3. Am a little disapointed with sparky serie of templates. They have many problems. Perhaps they are not ready yet.

Please Log in to join the conversation.

More
12 years 3 months ago #21784 by ivan.milic
Replied by ivan.milic on topic Is there custom style?
That works this way:

If you select predefined style other parameters don't have effect, to be able to use parameters you need to use custom style.

And if you prefer you can modify some predefined a bit by modifying /styles/styleX.php in template folder.

Please Log in to join the conversation.

  • yiannisps
    Inactive member
  • Topic Author
  • Visitor
  • Visitor
12 years 3 months ago #21785 by yiannisps
Replied by yiannisps on topic Is there custom style?
There is not option "Custom style" in this template.

Please Log in to join the conversation.

More
12 years 3 months ago #21793 by ivan.milic
Replied by ivan.milic on topic Is there custom style?
Yes, sorry i looked the code in index.php , styles/style1.php ,style2.php and style3.php

you would see code segment like this:

$bodyBgColor = "#15516b";
$bodyBgImageFile = "bg1.jpg";
if (@$_REQUEST == 'featured') {
$bodyBgImageFile = "home_".$bodyBgImageFile;
}
$topMenuBg = "top_menu_bg.png";
$logoImageFileSailing = "logo.png";

so for that template background is hard-coded because of design, and because this prefix home_ is added to home page background image name, so if you would enable value for parameter and you select image1.png for example you would also need to have home_image1.png in images folder.
To enable parameter do this:

remove hard-coded line:

$bodyBgImageFile = "bg1.jpg";

from all 4 places where value is bg.jpg,bg2.jpg and bg3.jpg

add this line:

$bodyBgImageFile = $this->params->get("bodyBgImageFile", "bg1.jpg");


before this in index.php of template (around line 97):

if($templateStyle) {

Please Log in to join the conversation.

  • yiannisps
    Inactive member
  • Topic Author
  • Visitor
  • Visitor
12 years 3 months ago #21803 by yiannisps
Replied by yiannisps on topic Is there custom style?
If i download again the template has that has been fixed?

Please Log in to join the conversation.

More
12 years 3 months ago #21817 by ivan.milic
Replied by ivan.milic on topic Is there custom style?
no it's like that, background image is hard-coded

Please Log in to join the conversation.

Time to create page: 0.174 seconds
Powered by Kunena Forum