Remove Google Fonts from parent theme within a child theme [closed]
As Buttered_Toast mentioned, I think the hook you want to use is wp_enqueue_scripts rather than after_setup_theme. Changing the priority is also a good idea to make sure your function trigger after the initial call from the parent theme. So your function would be: /** * Remove Accelerate Google fonts */ function remove_accelerate_google_fonts() { wp_dequeue_style( ‘accelerate_googlefonts-css’ … Read more