Archived topic
Adding Hook in the very top of
3 replies · Started by Will on May 20, 2017
Viewing posts 1–4 of 4
Hi there,
I need some code injecting at the top of all the other CSS / Javascript / Title / Meta tags in the header in order to run Google Optimize efficiently.
Please can you help with this? I used the standard GP Hook but it loads last in the head tag
Hi Will,
You would do this:
add_action( 'wp_head','tu_wp_head_first', 0 );
function tu_wp_head_first() {
?>
Your stuff in here
<?php
}
Adding PHP: https://docs.generatepress.com/article/adding-php/
Hi Tom,
As a function.php or in the GP Hook?
This archived topic is closed to new replies.