Note that there are some explanatory texts on larger screens.

plurals
  1. POload-scripts in wp-admin theme options file, wrong order, how to change it
    text
    copied!<p>I have set up a coda bubble information popup in my wordpress theme admin panel which is working perfectly when I put the code in my theme-options.php file. I included it in the functions.php like it should and it is loaded in the admin panel:</p> <pre><code>// De scripts enkel voor admin if (is_admin()){ wp_register_script( 'bubble', NHP_OPTIONS_URL.'js/bubble.js'); wp_enqueue_script('bubble'); } } add_action('init', 'register_js'); </code></pre> <p>The problem is, wordpress is already loading some scripts, and this before my script:</p> <pre><code>&lt;script type='text/javascript' src='http://localhost/wordpress/wp-admin/load-scripts.php?c=0&amp;amp;load=jquery,utils,farbtastic&amp;amp;ver=3.4.1'&gt;&lt;/script&gt; &lt;script type='text/javascript' src='http://localhost/wordpress/wp-content/themes/newtheme/options/js/bubble.js?ver=3.4.1'&gt;&lt;/script&gt; </code></pre> <p>-> here Farbtastic works but not my info bubbles.</p> <p>When I unload Jquery and let it load right before my code, the bubbles work, but not farbtastic. </p> <pre><code>&lt;script type='text/javascript' src='http://localhost/wordpress/wp-admin/load-scripts.php?c=0&amp;amp;load=utils,farbtastic&amp;amp;ver=3.4.1'&gt;&lt;/script&gt; &lt;script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js?ver=3.4.1'&gt;&lt;/script&gt; &lt;script type='text/javascript' src='http://localhost/wordpress/wp-content/themes/newtheme/options/js/bubble.js?ver=3.4.1'&gt;&lt;/script&gt; </code></pre> <p>How can I solve this please?</p> <p>Thanks in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload