Title: Modal Button Issue
Last modified: December 11, 2020

---

# Modal Button Issue

 *  Resolved [JayWhy](https://wordpress.org/support/users/jaywhy/)
 * (@jaywhy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/)
 * Hi,
 * The Delivery button in the modal window doesn’t work when pickup and delivery
   services are enabled.
 * I have the Service Modal Setting: Open service modal when menu page is ready.
   Everything works except for the Delivery button, it does not respond when clicked(
   no error message in the console). No issue if each service is enabled by itself,
   it’s when both are enabled that the problem occurs.
 * This is happening on a fresh install, I’m using the Divi theme with WooCommerce
   and your plugin. Any ideas?
 * Thanks
    -  This topic was modified 5 years, 5 months ago by [JayWhy](https://wordpress.org/support/users/jaywhy/).
    -  This topic was modified 5 years, 5 months ago by [JayWhy](https://wordpress.org/support/users/jaywhy/).

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

 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13774725)
 * Hello,
 * Can you please attach the menu page URL.
 * Regards,
    Team WP Scripts
 *  Thread Starter [JayWhy](https://wordpress.org/support/users/jaywhy/)
 * (@jaywhy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13777480)
 * Thanks for the quick reply, here is [the url](https://dev.sisc.com/order-online/).
 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13777582)
 * Hello,
 * Not sure of the issue. May be needed to debug properly to find out the cause.
   It could be a result of Divi Page Builder, Can you please create a different 
   page with the shorcode with WordPress editor and see if the issue is happening
   or not. Do let us know.
 * Regards,
    Team WP Scripts
 *  Thread Starter [JayWhy](https://wordpress.org/support/users/jaywhy/)
 * (@jaywhy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13777701)
 * Here is the shortcode on a page created with the classic editor:
    [new url](https://dev.sisc.com/order-2/)
 * Sadly the issue persists.
 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13785500)
 * Hello [@jaywhy](https://wordpress.org/support/users/jaywhy/)
 * Sorry we can’t help you with this. There must be some conflict with the theme
   or other plugins. We have tested with various themes and still doing with many
   more themes, and it runs well in most of the cases. You should try changing the
   theme or try to test with the theme with all other plugins disabled. Hope this
   helps.
 * Thanks & Regards,
    Team WP Scripts
 *  Thread Starter [JayWhy](https://wordpress.org/support/users/jaywhy/)
 * (@jaywhy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13788719)
 * Thanks. I tested 2 plugins — Food Store and WooCommerce — with several other 
   themes including a couple default WP themes, the issue was only present in Divi.
 * Oddly, the delivery button worked fine in Divi’s frontend editor yet broken on
   the live page.
 * The theme authors have gotten back to me, they confirmed it’s a jQuery conflict
   involving smooth scroll. Disabling it on the service modal fixed the button.
 *  Plugin Author [WP Scripts](https://wordpress.org/support/users/wpscripts/)
 * (@wpscripts)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13792499)
 * Hello,
 * Thanks for the update on issue. Hope its all working for you now. Please leave
   your [feedback](https://wordpress.org/support/plugin/food-store/reviews/#new-post)
   for the plugin if you think its helpful.
 * Thanks & Regards,
    Team WP Scripts
 *  [davik4life](https://wordpress.org/support/users/davik4life/)
 * (@davik4life)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13835609)
 * Hi [@jaywhy](https://wordpress.org/support/users/jaywhy/) Pls, could you elaborate
   on how you fixed this issue? I am right where you were at the moment and I am
   stuck. Your help would be highly appreciated, Thanks.
    -  This reply was modified 5 years, 5 months ago by [davik4life](https://wordpress.org/support/users/davik4life/).
 *  Thread Starter [JayWhy](https://wordpress.org/support/users/jaywhy/)
 * (@jaywhy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13846030)
 * [@davik4life](https://wordpress.org/support/users/davik4life/)
 * Dashboard > Divi > Theme Options > Integration
 * On the Integration tab put the following script in the “< head > of your blog”:
 *     ```
       <script type="text/javascript">
       jQuery(document).ready(function(){
       		setTimeout(function(){
       jQuery("div#wfsServiceModal").addClass('et_smooth_scroll_disabled');
       },200); 
       });
       </script>
       ```
   
 * Tested with the latest: WP 5.6, Divi 4.7.7 and Food Store 1.3.3.
 * You might also want to read this thread about the [search form](https://wordpress.org/support/topic/search-form-bug/).
 *  [davik4life](https://wordpress.org/support/users/davik4life/)
 * (@davik4life)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13846196)
 * Thanks so much, [@jaywhy](https://wordpress.org/support/users/jaywhy/). Got it
   solved also by the Divi Team and I’m so grateful your response helped a great
   deal. Do have a wonderful time!

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

The topic ‘Modal Button Issue’ is closed to new replies.

 * ![](https://ps.w.org/food-store/assets/icon-256x256.png?rev=2323647)
 * [Food Store - Online Food Delivery & Pickup](https://wordpress.org/plugins/food-store/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/food-store/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/food-store/)
 * [Active Topics](https://wordpress.org/support/plugin/food-store/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/food-store/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/food-store/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [davik4life](https://wordpress.org/support/users/davik4life/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/modal-button-issue/#post-13846196)
 * Status: resolved