-
AuthorPosts
-
gribblej Friend
gribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
September 4, 2014 at 10:52 pm #201091I’ve read some prior posts but they are two years old and for earlier templates. Everything has changed. Almost made it work on my own in JA Biz. I see how it theoretically could be done. Just am wondering if someone else succeeded and would be willing to share that code mod. Always looking to learn cool new tricks. I’m seeing plenty of new sites which use this feature to great advantage.
Thanks,
-Jim G.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 5, 2014 at 3:19 am #548381Hi Jim,
You can try with my suggestion in this thread: http://www.joomlart.com/forums/topic/fixedsticky-menu-bar-and-ja-magz-mobile-menubar/#post-543298
Hope it helps.
Best
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
September 5, 2014 at 2:17 pm #548470Hi Saguaros, this looks promising. However, I want the header, menu bar and social login blocks all to be sticky. So that entire block at the top of the page is fixed, and the page scrolls under it. There doesn’t seem to be one block that houses everything. Although most appear to be housed within the block called t3-mainnav main-container.
Thanks,
-Jim G.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 8, 2014 at 8:20 am #548672Hi Jim,
You can try with this tweak:
– Go to file: /templates/ja_biz/tpls/blocks/head.php and add this code:
<script src="http://stickyjs.com/jquery.sticky.js"></script>
<script>
jQuery(document).ready(function(){
jQuery("#t3-mainnav").sticky({topSpacing:40});
jQuery("#top-header").sticky({topSpacing:0});
});
</script>
– Open css file: /templates/ja_biz/css/custom.css (create this file if it doesn’t exist)
Add this css rule:
.sticky-wrapper.is-sticky .t3-mainnav.navbar.navbar-default, .sticky-wrapper.is-sticky .t3-top-header{
width: 100%;
}
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
September 9, 2014 at 5:08 pm #548896Thank you! Giving it a try. Is right in line with what I was thinking.
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
September 12, 2014 at 1:22 am #549213This doesn’t work at all. Hmmm….
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
September 12, 2014 at 1:46 am #549215Maybe it has to do with my assigning green theme to inside pages. I only want that to be sticky. Also, I added slideshow to the header php file to move it on top of menu.
-Jim G -
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by Saguaros 10 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum