Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • franckyky Friend
    #155466

    Hi

    Hello,

    I’ve a problem that I can’t solve …
    I would like to change my background image according to the selected menu .
    I tried to copy the template (with a different name) by changing the background image and assigned to menus but it doesn’t work.
    How can I do that?

    thank you for your help

    (sorry for my english I’m french)

    Saguaros Moderator
    #359795

    you open this file; templatesja_sanidineii_lightindex.php and find the following code:

    [PHP]
    <body id=”bd” class=”<?php echo $tmpTools->getParam(JA_TOOL_LAYOUT);?>
    [/PHP]
    replace:
    [PHP]
    <body id=”bd” class=”mybody<?php echo JRequest::getVar(‘Itemid’,”);?> <?php echo $tmpTools->getParam(JA_TOOL_LAYOUT);?>
    [/PHP]

    with case : you can customize the background for Menu Item you expected:
    for example:

    with Menu has the Itemid 65, you will make the css as following
    <blockquote>
    .mybody65 {
    background:url(IMAGE PATH HERE) !important;
    }
    </blockquote>

    franckyky Friend
    #359855

    Wonderful !
    It works perfectly 🙂
    Thank you very much for your help quickly and efficiently.
    Long life to JoomlArt !

    Franck

    PS : Can I hav a static image instead of a scroll image ?
    I made my css like this :
    <blockquote>body.mybody54 {
    background-attachment:fixed;
    background:url(../images/background/photos.png) !important;
    }</blockquote>
    but it seems not work

    franckyky Friend
    #360523

    Anyone can help me please ?

    Saguaros Moderator
    #360564

    i think you did not do it correctly. Please provide me the link to your site ,i would like to see and try to help you out.

    Thanks

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

This topic contains 5 replies, has 2 voices, and was last updated by  Saguaros 13 years, 6 months ago.

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