Hi, sorry, now it works with this code:
add_action(‘wp_print_styles’, ‘ample_google_fonts_dequeue_styles’);
function ample_google_fonts_dequeue_styles() {
wp_dequeue_style( ‘ample-google-fonts’ );}
Thanx a lot!
Hi,
if i use this code:
add_action('wp_print_styles', 'ample-google-fonts_dequeue_styles');
function ample_google_fonts_dequeue_styles() {
wp_dequeue_style( 'ample-google-fonts' );}
i get this error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘ample-google-fonts_dequeue_styles’ not found or invalid function name in /…/wp-includes/class-wp-hook.php on line 286