-
AuthorPosts
-
ezaban Friend
ezaban
- Join date:
- August 2013
- Posts:
- 38
- Downloads:
- 33
- Uploads:
- 0
- Thanks:
- 16
- Thanked:
- 1 times in 1 posts
May 26, 2014 at 2:47 am #198158Hi,
I want to have the header block (menu+logo and everything on it) to be sticky to the top. I saw documentation videos on t3-framework.org that says by adding navbar-fixed-top this would be handled. It is done by adding this code, but it only sticks the menu when we scroll. I want the whole header (menu+logo+the balck line contains them) to be sticky. Is there any way to manage it?
Thanks
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
May 26, 2014 at 3:05 am #536610Try adding this code to this file: templatesja_sugitetplsblocksheader.php
<script src="http://stickyjs.com/jquery.sticky.js"></script> <script> jQuery(document).ready(function(){ jQuery("#t3-header").sticky({topSpacing:0}); }); </script>ezaban Friendezaban
- Join date:
- August 2013
- Posts:
- 38
- Downloads:
- 33
- Uploads:
- 0
- Thanks:
- 16
- Thanked:
- 1 times in 1 posts
May 26, 2014 at 3:37 am #536619It works fine dear chavan, Thanks
But there is an issue there, when screen show the most top of the page, drop down menus open and everything works great, when we scroll down, on the middle of the page for instance, the menu is sticks there but drop down menus do not open!
Is there any way to fix it?chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
ezaban Friendezaban
- Join date:
- August 2013
- Posts:
- 38
- Downloads:
- 33
- Uploads:
- 0
- Thanks:
- 16
- Thanked:
- 1 times in 1 posts
May 26, 2014 at 5:37 am #536628It looks working pretty good however, the code is changing CSS and is rewritten whenever I compile less to css. Sorry but I am a bit shaky in CSS; if I want to add it to custom.css is the code just the same? or do you have less code changing option instead?
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by chavan 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum