Trouble adding inline style after jQuery in the footer!
You are trying to load your inline js script after jQuery just by calling add_action( ‘wp_footer’, ‘myscript’ ); after wp_enqueue_script( ‘jquery’ ); But this will not load your myscript after jQuery. It is not how wp_footer and wp_enqueue_script works. wp_footer has a third argument named “priority”. add_action( ‘wp_footer’, ‘your_function’, 100 ); //100 is priority here. … Read more