Site logo

[Support request] Head Hook Element (entire site) not working in woocommerce product categories

Home Forums Support [Support request] Head Hook Element (entire site) not working in woocommerce product categories

Home Forums Support Head Hook Element (entire site) not working in woocommerce product categories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1832630
    Veronika

    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/

    #1832926
    Elvin
    Staff
    Customer Support

    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.

    #1832948
    Veronika

    <link rel=”preconnect” href=”https://fonts.googleapis.com”&gt;
    <link rel=”preconnect” href=”https://fonts.gstatic.com&#8221; crossorigin>

    <link href=”https://fonts.googleapis.com/css2?family=Petit+Formal+Script&family=Pinyon+Script&display=swap&#8221; rel=”stylesheet”>
    <link href=”https://fonts.googleapis.com/css2?family=PT+Sans+Narrow&display=swap&#8221; rel=”stylesheet”>

    Hook: wp_head
    Location: Entire Site

    #1832956
    Elvin
    Staff
    Customer Support

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.