conflict within WP if hacking function.php
-
Hello, you might remember some time ago I had an issue concerning Postman wizard in my installation, which wasn’t working. You then suggested me to add this code to function.php:
// DEQUE GLOBO SCRIPTS FROM THE ADMNISTRATION PAGES function postman_fix_globo_jquerymap() { // these first two resources present a conflict for Postman wp_dequeue_script ( 'jquerymap' ); wp_dequeue_style ( 'bootstrap-css' ); // the rest may cause conflicts with other plugins wp_dequeue_script ( 'google-maps' ); wp_dequeue_script ( 'gmaps' ); wp_dequeue_script ( 'angular' ); wp_dequeue_script ( 'angular-strap' ); wp_dequeue_script ( 'angular-bootstrap' ); wp_dequeue_script ( 'angular-strap-tpl' ); wp_dequeue_script ( 'angular-custom' ); wp_dequeue_script ( 'sortable' ); wp_dequeue_style ( 'fontawesome' ); } // add a hook for the Globo admin script fix add_action ( 'admin_enqueue_scripts', 'postman_fix_globo_jquerymap', 100 );I have nailed down a conflict between this code and one particular feature of the theme I’m using. If I delete that code then the feature works, but the wizard won’t. Is there a way around this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘conflict within WP if hacking function.php’ is closed to new replies.