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_scripts
norremove_action
seem to do the job, no matter if I hook them towp_head
orwp_enqueue_scripts
orwp_print_styles
.Can you help me?
Or maybe is this the only method that works?
function hu_print_gfont_head_link() { // do nothing; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘remove function from hook ‘wp_head’ does not work’ is closed to new replies.