-
AuthorPosts
-
midhat Friend
midhat
- Join date:
- January 2010
- Posts:
- 161
- Downloads:
- 101
- Uploads:
- 21
- Thanks:
- 43
- Thanked:
- 12 times in 1 posts
March 12, 2014 at 12:13 pm #195716hi,
I create modification of t3_bs3_blank template.
I want to make a one header backgroud image which will cover the entire width of the screen, and second over her which will cover the entire width of the website.
Something like the picture below:Is it possible and how?
Thanks in advance,
Midhat
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 13, 2014 at 10:25 am #526584You have to customize as follows:
+ Open the templates/t3_bs3_blank/tpls/blocks/header.php file
Change:
<header id="t3-header" class="container t3-header">
<div class="row"><!-- LOGO -->
<div class="col-xs-12 <?php echo $logosize ?> logo">
<div class="logo-<?php echo $logotype ?>">
<a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>">
<?php if($logotype == 'image'): ?>
<img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" />
<?php endif ?>
<span><?php echo $sitename ?></span>
</a>
<small class="site-slogan"><?php echo $slogan ?></small>
</div>
</div>
<!-- //LOGO --><?php if ($headright): ?>
<div class="col-xs-12 col-sm-4">
<?php if ($this->countModules('head-search')) : ?>
<!-- HEAD SEARCH -->
<div class="head-search <?php $this->_c('head-search') ?>">
<jdoc:include type="modules" name="<?php $this->_p('head-search') ?>" style="raw" />
</div>
<!-- //HEAD SEARCH -->
<?php endif ?><?php if ($this->countModules('languageswitcherload')) : ?>
<!-- LANGUAGE SWITCHER -->
<div class="languageswitcherload">
<jdoc:include type="modules" name="<?php $this->_p('languageswitcherload') ?>" style="raw" />
</div>
<!-- //LANGUAGE SWITCHER -->
<?php endif ?>
</div>
<?php endif ?></div>
</header>
To:
<header id="t3-header" class="t3-header">
<div class="container">
<div class="row">
<!-- LOGO -->
<div class="col-xs-12 <?php echo $logosize ?> logo">
<div class="logo-<?php echo $logotype ?>">
<a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>">
<?php if($logotype == 'image'): ?>
<img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" />
<?php endif ?>
<span><?php echo $sitename ?></span>
</a>
<small class="site-slogan"><?php echo $slogan ?></small>
</div>
</div>
<!-- //LOGO --><?php if ($headright): ?>
<div class="col-xs-12 col-sm-4">
<?php if ($this->countModules('head-search')) : ?>
<!-- HEAD SEARCH -->
<div class="head-search <?php $this->_c('head-search') ?>">
<jdoc:include type="modules" name="<?php $this->_p('head-search') ?>" style="raw" />
</div>
<!-- //HEAD SEARCH -->
<?php endif ?><?php if ($this->countModules('languageswitcherload')) : ?>
<!-- LANGUAGE SWITCHER -->
<div class="languageswitcherload">
<jdoc:include type="modules" name="<?php $this->_p('languageswitcherload') ?>" style="raw" />
</div>
<!-- //LANGUAGE SWITCHER -->
<?php endif ?>
</div>
<?php endif ?>
</div>
</div>
</header>+ Open the templates/t3_bs3_blank/css/template.css file
Change
.t3-header {
padding-top: 20px;
padding-bottom: 20px;
}
To.t3-header {
padding-top: 0px;
padding-bottom: 0px;
background: red;
}
#t3-header .container {
background: yellow;
}
Let me know if it helps.
1 user says Thank You to Ninja Lead for this useful post
midhat Friendmidhat
- Join date:
- January 2010
- Posts:
- 161
- Downloads:
- 101
- Uploads:
- 21
- Thanks:
- 43
- Thanked:
- 12 times in 1 posts
March 13, 2014 at 3:29 pm #526610Worked 🙂
Thanks,
Midhatmidhat Friendmidhat
- Join date:
- January 2010
- Posts:
- 161
- Downloads:
- 101
- Uploads:
- 21
- Thanks:
- 43
- Thanked:
- 12 times in 1 posts
April 5, 2014 at 9:09 am #529602I tried in this way to set two images in the background at the position spotight 1 (positions 1-4) and did not work. Is it possible?
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
April 5, 2014 at 9:59 am #529604Please post your site Url, that would be helpful
midhat Friendmidhat
- Join date:
- January 2010
- Posts:
- 161
- Downloads:
- 101
- Uploads:
- 21
- Thanks:
- 43
- Thanked:
- 12 times in 1 posts
April 5, 2014 at 10:28 am #529606AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 3 voices, and was last updated by midhat 10 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Two background images in header
Viewing 6 posts - 1 through 6 (of 6 total)