Conflicting with a theme
-
On the admin pages, I noticed a conflict with the theme I am using. It triggers the following script in the plugin’s /includes/Admin.php file:
wp_enqueue_script( "jq-modal", HURRYT_URL . 'assets/js/jquery.modal.min.js', [ 'jquery' ], "0.9.1", true );Would you be able to prevent running it from the admin pages using something like
if (!is_admin())? I hope jquery modal library is not necessary on the admin pages.Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Conflicting with a theme’ is closed to new replies.