Add mailchimp signup form code to WordPress Header using functions.php

If you need to add the mailchimp code to the header of your WordPress theme but you don’t want to mess with the parent theme, and you don’t have FTP access, you can add it easily as long as you have access to functions.php in your child theme.

Add the following code to the bottom of your functions.php file:

add_action('wp_head', 'mailchimp_code');
function mailchimp_code(){

Make sure you paste the code generated by mailchimp where you see it indicated.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha loading...