work on wingle articles
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
const isSingle = bodyHasClass('single')
|
||||
|
||||
var isMasonryPage = isArchive || isHome || isSearch
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -880,8 +880,12 @@
|
||||
|
||||
/* ----------------------------- scroll to title ---------------------------- */
|
||||
|
||||
const titleWrapperHeight = $('article>.titlewrapper')[0].getBoundingClientRect().height
|
||||
$('html, body').stop().animate({ scrollTop: titleWrapperHeight }, 400);
|
||||
if (!isMobile) {
|
||||
const titleWrapperHeight = $('article>.titlewrapper')[0].getBoundingClientRect().height
|
||||
if ($('html, body').scrollTop() == 0) {
|
||||
$('html, body').stop().animate({ scrollTop: titleWrapperHeight }, 400);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}//if single end
|
||||
|
||||
Reference in New Issue
Block a user