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:
The problem is, wordpress is already loading some scripts, and this before my script:
-> here Farbtastic works but not my info bubbles.
When I unload Jquery and let it load right before my code, the bubbles work, but not farbtastic.
How can I solve this please?
Thanks in advance!
I included it in the functions.php like it should and it is loaded in the admin panel:
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');
The problem is, wordpress is already loading some scripts, and this before my script:
Code:
<script type='text/javascript' src='http://localhost/wordpress/wp-admin/load-scripts.php?c=0&amp;load=jquery,utils,farbtastic&amp;ver=3.4.1'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-content/themes/newtheme/options/js/bubble.js?ver=3.4.1'></script>
-> here Farbtastic works but not my info bubbles.
When I unload Jquery and let it load right before my code, the bubbles work, but not farbtastic.
Code:
<script type='text/javascript' src='http://localhost/wordpress/wp-admin/load-scripts.php?c=0&amp;load=utils,farbtastic&amp;ver=3.4.1'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js?ver=3.4.1'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-content/themes/newtheme/options/js/bubble.js?ver=3.4.1'></script>
How can I solve this please?
Thanks in advance!