Header editing

Hi,
I have to put some code into header.php (Facebook Pixel to be precise).
But in wordpress appearance editor all I can see is: https://www.screencast.com/t/wH4nKIh6CTB
How could I add some code between <head and </head in header.php ?
Thank you.

Hi There,

Please add the following code under functions.php file locates in your child theme:

add_action( 'wp_head', 'x_insert_header_scripts' );
function x_insert_header_scripts(){
	?>
	<!-- Your code will go here -->
	<?php
}
2 Likes