site is: https://becometheshift.com/
everything worked great until i updated this morning. ids are correct, menu links are correct.
site is: https://becometheshift.com/
everything worked great until i updated this morning. ids are correct, menu links are correct.
Hello There,
Thank you for posting in! We cannot thoroughly check your site because the given credentials has a very limited privileges. Please make it as an administrator so that we can test and check your settings.
Meanwhile, Are you using CloudFlare or may have installed a caching plugin like WordFence, W3 Total Cache or WP Super Cache? Please keep in mind that after doing every updates, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.
You may also make sure that WordPress core is up to date also.
Please let us know how it goes.
that user has been given admin rights now.
yes, all caches have been cleared. and yes, wordpress is up to date.
Hi There,
Upon checking your website, I see some JS errors.
Please try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
Hope it helps.
Thanks for the help.
Cheers!
You’re welcome. Glad we could help.
i deactivated every plugin and am still having the same issue. i’ve purged all site caches and cloudflare caches.
like i said, everything worked fine until i updated the theme.
any other solutions?
thanks!
Hi @happycowstudios,
Please note that it’s not just the theme that is being updated, but you also updated your Wordpress. The new jQuery built-in to Wordpress no longer accept easing, hence, your custom code doesn’t work anymore.
This is your custom code,
jQuery(document).ready(function($) {
var $body = $('body');
var bodyHeight = $body.outerHeight();
var adminbarHeight = $('#wpadminbar').outerHeight();
var navbarFixedTopHeight = $('.hm11').outerHeight();
var locHref = location.href;
var locHashIndex = locHref.indexOf('#');
var locHash = locHref.substr(locHashIndex);
var dragging = false;
$body.on('touchmove', function() {
dragging = true;
} );
$body.on('touchstart', function() {
dragging = false;
} );
//
// Calculate the offset height for various elements and remove it from
// the element's top offset so that fixed elements don't cover it up.
//
function animateOffset( element, ms, easing ) {
$('html, body').animate({
scrollTop: $(element).offset().top - adminbarHeight - navbarFixedTopHeight + 1
}, ms, easing);
}
//
// Page load offset (if necessary).
//
$(window).load(function() {
if ( locHashIndex !== -1 && $(locHash).length ) {
animateOffset(locHash, 1, 'linear');
}
});
//
// Scroll trigger.
//
$('a[href*="#"]').unbind('touchend click').bind('touchend click', function(e) {
console.log($('.hm1.x-bar-fixed').outerHeight());
href = $(this).attr('href');
notComments = href.indexOf('#comments') === -1;
if ( href !== '#' && notComments ) {
var theId = href.split('#').pop();
var $el = $('#' + theId);
if ( $el.length > 0 ) {
e.preventDefault();
if (dragging) {
return;
}
animateOffset($el, 850, 'easeInOutExpo');
}
}
});
});
It should be changed to this
jQuery(document).ready(function($) {
var $body = $('body');
var bodyHeight = $body.outerHeight();
var adminbarHeight = $('#wpadminbar').outerHeight();
var navbarFixedTopHeight = $('.hm11').outerHeight();
var locHref = location.href;
var locHashIndex = locHref.indexOf('#');
var locHash = locHref.substr(locHashIndex);
var dragging = false;
$body.on('touchmove', function() {
dragging = true;
} );
$body.on('touchstart', function() {
dragging = false;
} );
//
// Calculate the offset height for various elements and remove it from
// the element's top offset so that fixed elements don't cover it up.
//
function animateOffset( element, ms ) {
$('html, body').stop().animate({
scrollTop: $(element).offset().top - adminbarHeight - navbarFixedTopHeight + 1
}, ms);
}
//
// Page load offset (if necessary).
//
$(window).load(function() {
if ( locHashIndex !== -1 && $(locHash).length ) {
animateOffset(locHash, 1);
}
});
//
// Scroll trigger.
//
$('a[href*="#"]').unbind('touchend click').bind('touchend click', function(e) {
console.log($('.hm1.x-bar-fixed').outerHeight());
href = $(this).attr('href');
notComments = href.indexOf('#comments') === -1;
if ( href !== '#' && notComments ) {
var theId = href.split('#').pop();
var $el = $('#' + theId);
if ( $el.length > 0 ) {
e.preventDefault();
if (dragging) {
return;
}
animateOffset($el, 850);
}
}
});
});
We don’t do code maintenance, it should be users responsibility to maintain and fix issues in their custom code especially after the updates. But this should serve as the explanation of what went wrong, and don’t do the update right into your live site. Any update (not just the theme) could break it if there are changes in the built-in features.
Thanks!
thanks so much! that fixed it!
You’re most welcome!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.