-
AuthorPosts
-
July 17, 2015 at 1:49 am #208894
How can i fixed topbar and header??
I tried inserting into /templates/your_template_name/tpls/blocks/header.php this some pieces of code
<header id="t3-header" class="wrap t3-header" data-spy="affix" data-offset-top="60">
And in my custom.css i insert :
.t3-header.affix {
position: fixed;
width: 100%;
z-index: 1030;
top: 0;
}My header is fixed but my topbar no… how can i fixed this position??
Thanks in advance
Css Magician FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
July 17, 2015 at 2:12 am #577726Hi @rodrago,
I made some changes on your site and it’s working fine now. Below are my tweak:
[PHP]<?php $this->loadBlock(‘topbar’) ?>
<?php $this->loadBlock(‘header’) ?>
[/PHP]
with
[PHP]
<div class=”t3-header-wrap” data-spy=”affix”>
<?php $this->loadBlock(‘topbar’) ?><?php $this->loadBlock(‘header’) ?>
</div>
[/PHP]
in /templates/your_template_name/tpls/default-content-left.phpAnd replace
[PHP]
<header id=”t3-header” class=”wrap t3-header” data-spy=”affix” data-offset-top=”60″>
[/PHP] with
[PHP]
<header id=”t3-header” class=”wrap t3-header”>
[/PHP] in /templates/your_template_name/tpls/blocks/header.phpReplace
.logo {margin-top: -85px!important; max-width: 300px!important}
.t3-mainnav {margin-left: 250px!important}
.t3-header {padding-top: 15px!important; padding-bottom: 15px!important}
.navbar-header {display: none!important;}
.t3-header.affix {position: fixed;width: 100%;z-index: 1030;top: 0;}
.t3-topbar.affix .affix {position: fixed;width: 100%;z-index: 1030;top: 0;}
with
.logo {margin-top: -85px!important; max-width: 300px!important}
.t3-mainnav {margin-left: 250px!important}
.t3-header {padding-top: 15px!important; padding-bottom: 15px!important}
.navbar-header {display: none!important;}
.t3-header-wrap.affix {position: fixed;width: 100%;z-index: 1030;top: 0;}
.t3-topbar.affix .affix {position: fixed;width: 100%;z-index: 1030;top: 0;}
.t3-header-wrap.affix + .t3-mainbody { margin-top: 158px; }
in the custom.css file.July 20, 2015 at 12:52 pm #578029Thanks for reply…
Top and header are fixed now but i cant fill login/registration fileds.
July 20, 2015 at 12:52 pm #644320Thanks for reply…
Top and header are fixed now but i cant fill login/registration fileds.
July 20, 2015 at 12:52 pm #742953Thanks for reply…
Top and header are fixed now but i cant fill login/registration fileds.
Css Magician FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
July 21, 2015 at 3:40 am #578101I just added some additional css rules below:
.modal-open .t3-header-wrap.affix + .t3-mainbody { margin-top: 0; }
.modal-open .t3-header-wrap.affix {position: static; z-index: 1;}
in the custom.css file.Kindly take a look.
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by rodrago 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum