Title: jQuery menu breaks when plugin is active
Last modified: August 20, 2021

---

# jQuery menu breaks when plugin is active

 *  Resolved [codeink](https://wordpress.org/support/users/codeink/)
 * (@codeink)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/)
 * Hi,
 * Our JavaScript/jQuery based dropdown menu does not function when this plugin 
   is activated. I have narrowed it down to lines 41-45 of florest-one-flower-delivery-
   public.js. Those lines are:
 *     ```
       jQuery.each(localStorageData, function( key, value ) {
   
              data[key] = value;
   
          });
       ```
   
 * I have commented out these in the plugin JS file and the menu works.
 * Are these lines crucial to the plugin working? Is there any reason why this would
   break our menu?
 * Thank you for your help!

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

 *  Plugin Author [Obituary Assistant](https://wordpress.org/support/users/fhwsolutions/)
 * (@fhwsolutions)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/#post-14824953)
 * Hi [@codeink](https://wordpress.org/support/users/codeink/),
 * Thanks for your post and sorry for the late reply. We will look into the problem
   and a solution. The code is needed and not sure why it would break your menu.
   Can you provide the error the comes up?
 * Thank you for letting us know!
    Dennis
    -  This reply was modified 4 years, 7 months ago by [Obituary Assistant](https://wordpress.org/support/users/fhwsolutions/).
 *  Thread Starter [codeink](https://wordpress.org/support/users/codeink/)
 * (@codeink)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/#post-14825080)
 * Thank you! No specific error comes up, the menu dropdown just stops working. 
   I can email you the website address?
 *  Plugin Author [Obituary Assistant](https://wordpress.org/support/users/fhwsolutions/)
 * (@fhwsolutions)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/#post-14828591)
 * My pleasure, thanks that would be awesome!
    Send to [dennis@dennis-bartel.com](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/dennis@dennis-bartel.com?output_format=md).
 *  Plugin Author [Obituary Assistant](https://wordpress.org/support/users/fhwsolutions/)
 * (@fhwsolutions)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/#post-14829431)
 * Thank you Stacey for letting us know about this. Glad the new update solves the
   issue. I added a line to check if the variable is null before trying to run the
   code.
 *  Thread Starter [codeink](https://wordpress.org/support/users/codeink/)
 * (@codeink)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/#post-14829899)
 * Thank you so much for all your help! 🙂

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

The topic ‘jQuery menu breaks when plugin is active’ is closed to new replies.

 * ![](https://ps.w.org/obituary-assistant-by-funeral-home-website-solutions/assets/
   icon-256x256.png?rev=2838808)
 * [Obituary Assistant](https://wordpress.org/plugins/obituary-assistant-by-funeral-home-website-solutions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/obituary-assistant-by-funeral-home-website-solutions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/obituary-assistant-by-funeral-home-website-solutions/)
 * [Active Topics](https://wordpress.org/support/plugin/obituary-assistant-by-funeral-home-website-solutions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/obituary-assistant-by-funeral-home-website-solutions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/obituary-assistant-by-funeral-home-website-solutions/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [codeink](https://wordpress.org/support/users/codeink/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/jquery-menu-breaks-when-plugin-is-active/#post-14829899)
 * Status: resolved