test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • ak1design Friend
    #136763

    Hi,
    how can i add a new set of backgroud and keep the curent one and be able to switch to it in the template manager in the drop list

    many thanks

    Sherlock Friend
    #285550

    Dear ak1design !

    Please try to install sanidine ii quickstart you will see that option :

    – Open index.php file in templates/ja_sanidineii_light folder, find following code section at about line 75 :


    $bodybg = $tmpTools->getParam('ja_bodybg');
    if ($bodybg) {
    $bodybg = " style="background-image: url(".$tmpTools->templateurl()."/images/background/$bodybg);"";
    }
    ?>
    <body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_LAYOUT);?> <?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>"<?php echo $bodybg;?> >

    red text is code for get background image and put it for body tag.

    please open templateDetails.xml file in templates/ja_sanidineii_light folder , find following code section at about line 99 :


    <param name="ja_bodybg" type="filelist" default="" directory="templates/ja_sanidineii_light/images/background" label="Body background" description="Background image for whole site" />

    this is xml code denifing background image to pick on template admin , images gotten from templates/ja_sanidineii_light/images/background folder.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Sherlock 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum