javascript conflicts with other plugins and solution
-
the solution is simple.
Just include the various styles and javavascript only in the plugin page.if (!defined('ABSPATH')) { exit; } define('SAVE_CF7_ADMIN_MENU','save_contact_form_7'); // define menu slug name . . .
if (!function_exists('nimble_scripts')) { // enqueue script and style only in save cf7 page function nimble_scripts($hook) { if ($hook != 'toplevel_page_'.SAVE_CF7_ADMIN_MENU) { return; } . . .
if (!function_exists("nimble_menu")) { function nimble_menu() { $page_title = 'Save Contact Form 7'; $menu_title = 'Save CF7'; $capability = 'manage_options'; $menu_slug = SAVE_CF7_ADMIN_MENU; // <-- use menu slug definition $function = 'nimble_populate_page';
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘javascript conflicts with other plugins and solution’ is closed to new replies.