Her’s the question: I’m trying to place a code (to connect mailchimp with Wp) in the heder.php file inside the child theme.
I know ther’s no header.php in the child theme and that I should place the code inside function.php, wich I did this way:
add_action(‘wp_head’, ‘add_head_code’);
function add_head_code() {
?>
MAILCHIMP-GENERATED CODE
<?php } Apparently that didn't work properly and I don't see the code in the website source and mailchimp can't either. What's wrong?