Hello,
I would like to add mailchimp’s sign form code onto my blog post pages only. I had in mind that something like this would work under the child theme in functions.php.
function mailchimp_signup_code() { ?>
<----------Mailchimp code here.---->
<?php }
add_action( ‘wp_head’, ‘mailchimp_signup_code’ );
Could you please let me know if that’s the right idea? Additionally, I want the code to be applied to blog posts only or exclude certain page types. How can I do that? I am using the renew stack.
Your help is greatly appreciated!
Thanks
