Title: Bug jquery
Last modified: August 21, 2016

---

# Bug jquery

 *  Resolved [sil3r](https://wordpress.org/support/users/sil3r/)
 * (@sil3r)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/)
 * Hello, new version break my script :
 *     ```
       <script>jQuery(document).ready(function($){jQuery(function($s){jQuery("<select />").appendTo("#top-menu");jQuery("<option />",{"selected":"selected","value":"","text":"Menu"}).appendTo("nav select");jQuery("nav a").each(function($s){var el=jQuery(this);if((el.parent("li").hasClass("current-menu-item")||el.parent("li").hasClass("current-menu-parent"))&&(!el.parent("li").hasClass("menu-item-home"))){jQuery("<option />",{"selected":"selected","value":el.attr("href"),"text":el.text()}).appendTo("nav select")}else{jQuery("<option />",{"value":el.attr("href"),"text":el.text()}).appendTo("nav select")}});jQuery("nav select").change(function($s){window.location=jQuery(this).find("option:selected").val()})});jQuery('button#menu-bouton').click(function($m){jQuery('#menu-login').slideToggle(700);return false;});widthprev = $(window).width();jQuery(window).resize(function($m){if(($(window).width() != widthprev)&&($(window).width() > 1020)){jQuery("#menu-login").css("display", "");}widthprev = $(window).width();});jQuery('.header-widget h3').click(function($act){if($(window).width()>1020){}else{jQuery('.header-right .textwidget').slideToggle(400);return false;}});widthpre = $(window).width();jQuery(window).resize(function($act){if(($(window).width() != widthpre)&&($(window).width() > 1020)){jQuery(".header-right .textwidget").css("display", "");}widthpre = $(window).width();});$(window).scroll(function($tt){if($(this).scrollTop() > 500){$('.retourhaut').fadeIn(600);}else{$('.retourhaut').fadeOut(600);}});
       $('a[href^="#"]').click(function($stt){var the_id = $(this).attr("href");$('html, body').animate({scrollTop:$(the_id).offset().top}, 'slow');return false;});});</script>
       ```
   
 * Can you help me please ? Thanks !
 * [http://wordpress.org/plugins/advanced-responsive-video-embedder/](http://wordpress.org/plugins/advanced-responsive-video-embedder/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Nico](https://wordpress.org/support/users/nico23/)
 * (@nico23)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370526)
 * If you would be so kind and tell me what exact error message and where do you
   load this script? header? body? footer? Is this loaded after jQuery was included?
   Link to site?
 * You should put that script in a .js file and include it properly with
    [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script).
 * Also you are free to download the old version that worked [http://downloads.wordpress.org/plugin/advanced-responsive-video-embedder.2.7.5.zip](http://downloads.wordpress.org/plugin/advanced-responsive-video-embedder.2.7.5.zip)
 *  Thread Starter [sil3r](https://wordpress.org/support/users/sil3r/)
 * (@sil3r)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370553)
 * I don’t have error message, just my scripts doesn’t work. Jquery is include on
   header and my scripts are in a scripts.js file with wp_enqueue_script in footer
   
   wp_enqueue_script( ‘xarold’, get_bloginfo(‘template_directory’) . ‘/js/scripts.
   js’, array(‘jquery’), ‘2.0’, true );
 * my website is [http://www.xarold.com](http://www.xarold.com), at the moment, 
   I put the old version of your plugin
 * Thank’s
 *  [Kristof Schmit](https://wordpress.org/support/users/krisser/)
 * (@krisser)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370579)
 * Hi, I updated A. R. Video Embedder to the latest version. The plugin conflicts
   with Royal Slider. I had to deactivate A.R.V.E. to make [my site](http://goo.gl/HJLght)
   work properly. Please tell me if you need to see the bug and I will activate 
   A.R.V.E. for some minutes. Thanks!
 *  [Arved007](https://wordpress.org/support/users/arved007/)
 * (@arved007)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370580)
 * Indeed, the new version has conflicts with all my themes and some plugins like
   Digg Digg.
 *  [Granit](https://wordpress.org/support/users/granit/)
 * (@granit)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370592)
 * Same here, everything stops working.
    Please fix.
 *  Plugin Author [Nico](https://wordpress.org/support/users/nico23/)
 * (@nico23)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370600)
 * Please tell me if 3.0.3 fixes the issues. If you get errors please open a javascript
   console Devtools/Firebug … and post **error messages!** Showing a little bit 
   of efford woult be really nice for a free plugin.
 *  Thread Starter [sil3r](https://wordpress.org/support/users/sil3r/)
 * (@sil3r)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370604)
 * thank’s nico all work great now for me ! If you want help or beta tester i’m 
   here ! (contact@xarold.com)
 *  [Granit](https://wordpress.org/support/users/granit/)
 * (@granit)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370605)
 * Work here to now.
 * Thank you very much.
 *  [Kristof Schmit](https://wordpress.org/support/users/krisser/)
 * (@krisser)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370629)
 * Thank you very much, Nico.
 * Guys, I just donated him a few bucks for the quick fix (way to less). [So let’s crowdfund him some billable hours 🙂](http://nextgenthemes.com/plugins/advanced-responsive-video-embedder/)(
   blue Donate button is on the right).
 *  Plugin Author [Nico](https://wordpress.org/support/users/nico23/)
 * (@nico23)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370630)
 * LOL maybe I should break this plugin intentionally in the future. Seems like 
   people like do donate when errors accour and then get fixed 😉

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Bug jquery’ is closed to new replies.

 * ![](https://ps.w.org/advanced-responsive-video-embedder/assets/icon-128x128.png?
   rev=3338557)
 * [Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick ...](https://wordpress.org/plugins/advanced-responsive-video-embedder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-responsive-video-embedder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [Nico](https://wordpress.org/support/users/nico23/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/bug-jquery/#post-4370630)
 * Status: resolved