Pasting script between head tags

Hi, I’m hoping you can help, our client has asked us to post some code they’ve been given from their SEO people, but it needs to be pasted between the <head></head> tags of the page where the phone number appears, right after the global site tag. Because they’ve asked for it to appear in a specific place (right after the global site tag), is this different to using the following that I found on a previous post?

function my_custom_head_output() { ?>

 <script type="text/javascript">
  // Add your custom scripts here
 </script>

<?php }

add_action( 'wp_head', 'my_custom_head_output' );

Thanks!

Hi @core365,

Thanks for reaching out.
To add the Custom JavaScript codes to the Header & Footer, please check out this article. Please remember that we don’t offer any support for the custom codes or issues related to it.

Thanks

Hi @tristup,

Ok, thanks for your reply.

Hi @core365,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.