-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 21, 2017 at 4:09 am #1075572Hi Luke,
I guess you’re enabling option to show ‘Collapse navigation for small screens’, you can access template manager > Navigation tab > disable this option: http://prntscr.com/hd5grr
For the sticky, you will customize a bit, here is my tweak:
Go to file: [root]/templates/ja_smallbiz/js/script.js
Add this script at the end of file:(function($) { var scrollLastPos = 0, scrollDir = 0, // -1: up, 1: down scrollTimeout = 0; $(window).on ('scroll', function (e) { var st = $(this).scrollTop(); //Determines up-or-down scrolling if (st < 80) { if (scrollDir != 0) { scrollDir = 0; scrollToggle(); } } else if (st > scrollLastPos){ //Replace this with your function call for downward-scrolling if (scrollDir != 1) { scrollDir = 1; scrollToggle(); } } else if (st < scrollLastPos){ //Replace this with your function call for upward-scrolling if (scrollDir != -1) { scrollDir = -1; scrollToggle(); } } //Updates scroll position scrollLastPos = st; }); $('.ja-header').on ('hover', function () { $('html').removeClass ('scrollDown scrollUp').addClass ('hover'); scrollDir = 0; }) scrollToggle = function () { $('html').removeClass ('hover'); if (scrollDir == 1) { $('html').addClass ('scrollDown').removeClass ('scrollUp'); } else if (scrollDir == -1) { $('html').addClass ('scrollUp').removeClass ('scrollDown'); } else { $('html').removeClass ('scrollUp scrollDown'); } $('html').addClass ('animating'); setTimeout(function(){ $('html').removeClass ('animating'); }, 1000); } })(jQuery);
Go to file: [root]/templates/ja_smallbiz/css/custom.css (create this file if it doesn’t exist)
Add this css rule:.t3-header { position: fixed !important; width: inherit; } @media (max-width: 1500px) { .t3-header { width: 100%; } }
November 21, 2017 at 6:13 am #1075587This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 21, 2017 at 9:56 am #1075650Hi,
For the space, try to use this CSS rule:
.t3-content-mast-top { padding-top: 96px; }
Did you add the script js as I suggested above? As it helps to put a class called .scrollDown and you can style for the header something like:
.scrollDown .t3-header { //your custom style for transparent here; }
November 21, 2017 at 10:06 am #1075654This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 21, 2017 at 10:22 am #1075659You can share admin + FTP account and take a backup of your site, I will check for you.
November 21, 2017 at 10:35 am #1075662This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 22, 2017 at 3:15 am #1075787Glad to hear it’s working now. Let me know if you need further helps.
November 22, 2017 at 9:32 am #1075859This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 23, 2017 at 8:59 am #1076132Because other pages don’t have block with class ‘t3-content-mast-top’ like homepage, they have ‘.t3-mainbody’ instead.
Try to change above rule to:
.t3-content-mast-top, .t3-mainbody { padding-top: 96px; }
-
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by Saguaros 7 years ago.
The topic ‘Customization for SmallBiz Template’ is closed to new replies.