Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • cjmicro Friend
    #153327

    I would like to set a different color body background on the home page only. I have a style setup, just need to know the code to put on the index page to check if it’s home page then use the home body id, or else use template bg on other pages.

    Please let me know how to do this, thanks!

    Cheryl

    Saguaros Moderator
    #352387

    Hello Cheyl!

    now, you open the file : templates/ja_pyrite/index.php and find the following code:
    [PHP]
    <body id=”bd” class=”…
    [/PHP]
    replace:
    [PHP]
    <body id=”bd” class=”<?php echo $tmpTools->isFrontPage()? ‘my-home ‘:”;?>…
    [/PHP]

    after done, the body tag has the my-home class in the home page, you will make style for this class

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

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 3 months ago.

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