dequeue assets

This topic contains 3 replies, has 2 voices, and was last updated by  Diane Kelm 7 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #313696

    Diane Kelm
    Buyer
    Post count: 49

    Is it possible to dequeue scripts and styles on non geo-dir pages.
    The reason I ask is because I want to use The Events Calendar plugin.
    I have an error that I have maps.google.com maps api loaded twice.
    What are the id’s to reference the styles and scripts?

    This will also help with site performance.

    #313731

    Diane Kelm
    Buyer
    Post count: 49

    i found this code..
    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);
    }
    }

    I also need example to remove add-ons.
    Using all of them
    including the gt vouchers, business hours

    #314252

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are best removing the events calendar ver of google maps, we add several other parameters to our api call that are not added by the events calendar.

    Thanks,

    Stiofan

    #316075

    Diane Kelm
    Buyer
    Post count: 49

    It would still be helpful to know how to dequeue add-ons for other non geo-dir pages
    Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket