HELP I need to add this code to my header

I need to add this code to my header: <script type = "text / javascript" src = "https://embed.modernapp.co/chat?code=662feb1262d53fc750acba16dda50abf"> </ script>

Hi There,

You need to setup a child theme first:

After that add this code under functions.php file locates in your child theme:

add_action( 'wp_head', 'add_head_script' );
function add_head_script(){
	?>
	<script type="text/javascript" src="https://embed.modernapp.co/chat?code=662feb1262d53fc750acba16dda50abf"></script>
	<?php
}

Hope it helps :slight_smile:

Thanks mate.
Can I do the same with facebook pixels?

Hello Andrew,

Yes you can do the same for the Facebook Pixels.

Alternatively, if you are not fond of coding, you can simply install “Insert Headers and Footers” plugin.

You can easily insert codes for the header or footer by using this plugin. Once installed, you can go to Settings > Insert Headers and Footers where you can insert the code in the designated areas.

Hope this helps.

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