Archived topic
Head Hook Element (entire site) not working in woocommerce product categories
3 replies · Started by Veronika on June 23, 2021
I'm loading some google fonts (Heading script for example - Petit Formal Script) using Hook Element - Display rules - Entire Site.
It works everywhere except for woocommerce product categories..
Example of where it works
https://nove.jeran.sk/pohyb-inak/
Example of where it doesn't work (the code isn't in the HEAD)
https://nove.jeran.sk/kategoria-produktu/aktivita/pohyb-inak/
Hi Veronika,
Can you share the display rule setting of the Hook element? Perhaps it's set to specific pages only.
Also, can you share the contents of the Hook element? So we can cross check if it actually rendered on the wp_head.
Let us know.
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Petit+Formal+Script&family=Pinyon+Script&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=PT+Sans+Narrow&display=swap" rel="stylesheet">
Hook: wp_head
Location: Entire Site
Strange.
Let's try finding out which specifically is the issue.
Can you try disabling all plugins except GP Premium? To see if it's a plugin issue.
I see that you're using a child theme as well. Can you try temporarily deactivating the child theme and use just the parent theme for now? To see if it's a template issue.
Let us know.
Note: if you're using a custom child theme template that's missing a wp_head hook for the product pages, it makes sense why the wp_head hook doesn't work because there's no wp_head to hook things in.