Plugin causing conflict with mobile child menus on FrontRunner theme
-
This plugin is causing an issue with the FrontRunner theme: https://themeforest.net/item/political-wordpress-theme-frontrunner/13392446
Menus with child items do not open in the mobile responsive mode when this plugin is activated. Deactivating the plugin fixes the problem instantly.
The theme author suspects it is because your plugin is also loading bootstrap, which the theme utilizes.
Per the theme author:
The problem is being caused by the ‘wp-content/plugins/responsive-accordion-and-collapse/js/bootstrap.js‘ file
In the ‘wp-content/plugins/responsive-accordion-and-collapse/lib/installation/installation.php‘ file on line 15 you’ll see this line of code…
wp_enqueue_script( ‘wpsm_ac_bootstrap-js-front’, wpshopmart_accordion_directory_url.’js/bootstrap.js’, array(), ”, true );
Change it to this…// wp_enqueue_script( ‘wpsm_ac_bootstrap-js-front’, wpshopmart_accordion_directory_url.’js/bootstrap.js’, array(), ”, true );
Save and upload.Now the mobile menu should work.
The plugin authors need to add a couple of settings to their plugin that enable users to disable the Bootstrap CSS and the Bootstrap JavaScript.
- The topic ‘Plugin causing conflict with mobile child menus on FrontRunner theme’ is closed to new replies.