test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • eware Friend
    #118736

    Is it possible to change the height of header position based on different page ?
    Or can we just make its height to fit to the height of images.
    We have different images for front page and inner pages.
    We want to make header in inner pages is smaller.

    Is it possible ? Can anyone tell me how to do ?

    Thanks.

    Khanh Le Moderator
    #214429

    To make your header in inner pages is smaller than in frontpage, you could follow these steps:

    1. Open template index.php file, search code:


    <?php if( mosCountModules('header') ) {?>
    <div id="ja-sh" class="clearfix">
    <?php mosLoadModules('header', -1); ?>
    </div>
    <?php } ?>

    Replace with:


    <?php
    $fp = "";
    if ( $option != 'com_frontpage' ) $fp = "-fp";
    ?>
    <?php if( mosCountModules('header') ) {?>
    <div id="ja-sh<?php echo $fp; ?>" class="clearfix">
    <?php mosLoadModules('header', -1); ?>
    </div>
    <?php } ?>

    2. Open template css template_css.css file, search style:


    #ja-sh {
    clear: both;
    border-bottom: 3px solid #F85703;
    background: #484848;
    height: 152px;
    overflow: hidden;
    }

    Copy to new style:


    #ja-sh-fp {
    clear: both;
    border-bottom: 3px solid #F85703;
    background: #484848;
    height: 152px;
    overflow: hidden;
    }

    3. Now you could change the height of 2 styles: #ja-sh and #ja-sh-fp. Inner pages will use #ja-sh, while frontpage will use #ja-sh-fp.

    eware Friend
    #214442

    Thanks very much for your support.
    I almost get there, but still a little problem.
    The bottom line color of header in frontpage is always brick even if I change the template color to blue. But inner page’s header not have this problem.
    I am sure I copy all code for ‘ja-sh’ to ‘ja-sh-fp’ except the height.

    You may our site again http://www.eware.com.hk/cms

    Can you give me more help on this ? Thanks.

    Khanh Le Moderator
    #214443

    Hi eware,
    I have missed one thing. You need update 3 css files in folder css/colors. Search code:


    #ja-sh {

    replace with:


    #ja-sh, #ja-sh-fp {

    eware Friend
    #214566

    It works finally.
    Thanks for your exellent support.
    We appreicate it.

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

This topic contains 5 replies, has 2 voices, and was last updated by  eware 17 years, 9 months ago.

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