JQuery loading after plugins – issue

https://crunchify.com/how-to-fix-wordpress-uncaught-typeerror-is-not-a-function-jquery-error/

$(function(){ to jQuery(function($){

https://www.sitepoint.com/using-jquery-interactions-in-your-wordpress-admin/

Loading Scripts Correctly in the WordPress Admin

Scroll to Top