Hi guys
I was using a javascript to push the home page to the bottom.
I use this in my child’s function PHP:
wp_enqueue_script( ‘custom’, get_theme_root_uri() . ‘/enfold-child/js/custom.js’, array ( ‘jquery’ ), 1.0, true);
And this in my custom.js
$( window ).on( “load”, function() {
if($(“#1”).length) {
$(‘html, body’).animate({
scrollTop: $(“#1”).offset().top
}, 1);
}
});
It worked okay until I updated to the latest version of Enfold.
Any ideas? Cheers.
Hey StartSmallDigital,
Go to performance options in the theme options
Disable JS merging
Clear the browser
Clear cache in plugin options if you are using a caching plugin
Once the cache is cleared you can enable all options back.
This should fix the issue for you :)
Best regards,
Vinay
Hi Vinay,
Thank you for your answer.
Btw, I’m starting to observe that my css changes that I do in the Child theme no longer work.
I’ll add the css code in the child, delete every cache I can find and I still won’t see any changes.
Is it that caused by css merging?
Hey,
Could you please create temporary admin logins and post it here privately so we can look into it?
Regards,
Yigit
Hey,
We also just updated the theme, and found that all the other custom JS on the site stopped working, and that this was because the jQuery document ready event ($( document ).ready()) is not firing.
As a workaround, we have temporarily removed this.
We have confirmed via a dev site that it is the them upgrade that caused the problem. JS merging is disabled.
Please can you advise?
Thanks,
Tom
Hi,
@stedall please create a different ticket
Please both post your web sites so we can try see what issue exists.
Best regards,
Basilis