-
AuthorPosts
-
February 10, 2007 at 2:17 pm #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 ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
February 11, 2007 at 12:04 pm #214429To 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.
February 11, 2007 at 3:42 pm #214442Thanks 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 ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
February 11, 2007 at 5:15 pm #214443Hi 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 {
-
AuthorPosts
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