Tagged: header, Tracking Code
Hi,
for a “Thank you” page of my website I need a facebook tracking code in one single page of my website, f.e. http://domain.de/contact/thank-you.
If I put the code into a Code Block element, the tracking code is in <body> of the page. But I need the code in <head>. How can I do that with Enfold (I changed from Thesis to Enfold)?
Hi Marcel!
Please add following code to Functions.php file of your child theme in Appearance > Editor
function add_custom_code(){
if(is_page(59)) {
?>
// YOUR CODE GOES HERE
<?php
}
}
add_action('wp_head', 'add_custom_code');
You would need to change 59 to the ID of your page
Best regards,
Yigit
Hi Yigit,
thank you very much. It works fine.