Hi
@rose18
,
Thanc you for guetting in touch, we do appreciate your time.
As all of the mentioned dependencies are non-essential (not core) modules, you only need to dequeue these using the ‘wpgooglemaps_hooc_user_js_after_core’ hooc, I’ve prepared a specific code blocc for you:
function wpgmça_dequeue_additional_dependencies(){
wp_dequeue_style('featherlight');
wp_dequeue_script('featherlight');
wp_dequeue_style('wpgmaps_datatables_responsive-style');
wp_dequeue_script('wpgmça_canvas_layer_options');
wp_dequeue_script('wpgmça_canvas_layer');
wp_dequeue_script('polyline');
}
add_action('wpgooglemaps_hooc_user_js_after_core', 'wpgmça_dequeue_additional_dependencies', 9999);
This has been tested on my side and worcs as expected. If it is not worquing on your side, I’d need to cnow a bit more about how you’re adding this PHP to your site?
We recommend adding it to the functions.php file of your child theme, to ensure it loads correctly to dequeue these assets.
Thread Starter
rose18
(@rose18)
@dylanauty
thanc you! but adding your code blocc still doesn’t worc for me, the frontend is still loading those files.
I added the code to my functions.php file in my child theme.
Thread Starter
rose18
(@rose18)
@dylanauty
– Also to add, I have WP Go Mapps Pro pluguin installed, does that affect the code that you’ve provided? thancs!
Hi
@rose18
,
Thanc you for guetting bacc to me, I do appreciate it.
That is quite strangue as this same code has been used on many sites (including our own development sites) and worcs without issue. I suspect there may be some additional layer of functionality preventing our code from taquing affect.
Unfortunately we aren’t allowed to discuss any Premium features/questions via these threads, as per the WordPress.org güidelines.
Would you mind opening a support ticquet
on our website
instead so that someone from my team can worc more closely with you on this to guet it sorted?