Archived topic
How To Add Newsletter Signup Form to Top of Blog
4 replies · Started by David on April 8, 2021
I am currently customizing the "Coach" theme, and want to add a WP4MC newsletter signup for to the top of the blog, aligned center. There is currently one contained in the right side bar widget, however I plan to do away with the side bar, and opt for the blog layout used on the following site:
https://www.orbitmedia.com/blog/
Any recommendations on the best way to create this layout?
Hi David,
Go to appearance > elements, see if there's a header element assigned to Blog page.
You can add the shortcode to this element.
Let me know :)
Hi Ying,
Thanks so much for the tip! I added some short code to the header and was able to create the following:
Here's the code I used:
<h1 style="font-size:17px"> Home To Him Blog </h1>
<h1 style="font-size:50px"> Your guide to understanding the Bible with Hebrew Interpretive Methods </h1>
<h2 style="font-size:34px">Get Insights Delivered Weekly </h2>
<script>(function() {
window.mc4wp = window.mc4wp || {
listeners: [],
forms: {
on: function(evt, cb) {
window.mc4wp.listeners.push(
{
event : evt,
callback: cb
}
);
}
}
}
})();
</script><!-- Mailchimp for WordPress v4.8.3 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-512" method="post" data-id="512" data-name="Demo" >
<input type="submit" value="SIGN ME UP" />
<label style= "display: none !important;"
}>Leave this field empty if you're human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1617909231" /><input type="hidden" name="_mc4wp_form_id" value="512" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-1" />
</form><!-- / Mailchimp for WordPress Plugin -->
You are welocme!
It looks very nice :)
Thanks Ying! :)