-
AuthorPosts
-
April 26, 2018 at 12:13 pm #947224
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.
April 27, 2018 at 11:23 am #947845Hey 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 pluginOnce the cache is cleared you can enable all options back.
This should fix the issue for you :)
Best regards,
VinayMay 8, 2018 at 2:24 pm #953389Hi 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?
May 8, 2018 at 4:02 pm #953422Hey,
Could you please create temporary admin logins and post it here privately so we can look into it?
Regards,
YigitMay 9, 2018 at 5:24 pm #954065Hey,
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,
TomMay 10, 2018 at 8:11 pm #954845Hi,
@stedall please create a different ticketPlease both post your web sites so we can try see what issue exists.
Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.
