For other people with the same issue who don’t read comments the solution was to change the hook from wp_head
to get_header
For other people with the same issue who don’t read comments the solution was to change the hook from wp_head
to get_header