remove function from hook ‘wp_head’ does not work
-
We are using Hueman 3.6.7 and a child theme.
I’d like to remove
– either the function ‘hu_print_gfont_head_link’ which is attached to the hook ‘wp_head’ –
add_action( 'wp_head', 'hu_print_gfont_head_link', 2 );– or the stylesheet ‘hu-user-gfont’ from <HEAD>
<link id="hu-user-gfont" href="//fonts.googleapis.com/css?family=…" rel="stylesheet" type="text/css">Every attempt I made in this failed.
Neitherwp_dequeue_scriptsnorremove_actionseem to do the job, no matter if I hook them towp_headorwp_enqueue_scriptsorwp_print_styles.Can you help me?
Or maybe is this the only method that works?
function hu_print_gfont_head_link() { // do nothing; }
The topic ‘remove function from hook ‘wp_head’ does not work’ is closed to new replies.
