Chris Crawford

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Timepicker Conflict #446881

    Chris Crawford
    Buyer
    Post count: 2

    I tried adding this code to the functions.php and it seemed to fix the problem and so the geodirectory scripts are not being loaded on every page. If you still want to investigate the conflict I would be happy to provide screenshots and anything else you need.

    add_action( ‘wp’, ‘wpdocs_dequeue_script’, 100 );
    function wpdocs_dequeue_script() {
    if (!geodir_is_geodir_page()){
    remove_action(‘wp_enqueue_scripts’, ‘geodir_templates_scripts’);
    remove_action(‘wp_enqueue_scripts’, ‘geodir_templates_styles’, 8);
    }
    }

Viewing 1 post (of 1 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount