projects
/
WP-Themes
/
wmta.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e344f67
)
adding sticky scroll for topbar in mobile
author
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 24 Jan 2018 16:29:51 +0000
(11:29 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 24 Jan 2018 16:29:51 +0000
(11:29 -0500)
fixing the sticky in topar in mobile
footer.php
patch
|
blob
|
history
diff --git
a/footer.php
b/footer.php
index
af615e5
..
027ceb4
100644
(file)
--- a/
footer.php
+++ b/
footer.php
@@
-152,8
+152,18
@@
get_template_part('template-parts/search','overlay');
$('#scroller').removeClass('stuck');
$('.nav_logo').removeClass('logo-adjust');
}
-
});
+ if( $(window).width() < 1024 ){
+ $(window).scroll(function() {
+ if ($(window).scrollTop() > 30) {
+ $('.sticky-container').addClass('stuck');
+ $('.nav_logo').addClass('logo-adjust');
+ } else {
+ $('.sticky-container').removeClass('stuck');
+ $('.nav_logo').removeClass('logo-adjust');
+ }
+ });
+ }