You already know the 3 reasons why I love Genesis. What I didn’t know is some of you like my opt-in form after my posts but don’t know how to do it.
Although I was reffering my readers to Brian’s tutorial (see here), I’ve decided to explain how I did it, so that you can benefit as well.
In order to follow this tutorial, you must have the Genesis Framework for WordPress, otherwise it won’t work.
Ok, lets get started.
1. Create a new Newsletter.php script
Copy the code below into notepad, replace the text the way you want it appear in your opt-in form.
Under the line 10 goes your Twitter “Follow” button. Obviously you’ll want to replace the DomainsFlow mentions with your own Twitter username.
Between the 12-18 line I placed my Feedburner code (ok I know I should change my email provider but that’s another story). Again, here you replace with the code of your email service.
Save the text file as newsletter.php, and then upload it into your child theme’s folder. Example location: domainsflow/wp-content/themes/eleven40.
2. Hook an opt-in form after each post
Hook it with the code below so that an opt-in form will appear after all your posts. Just copy the code below into your functions.php script (Appearance > Editor > functions.php).
3. Opt-in form style
Obviously we need to put a little style on this opt-in form. Download the “Sign Up” ribbon that shows at the top left corner. Save the image to your desktop and upload it to the image directory on your hosting.
Now, copy the code below into your style.css sheet (Appearance > Editor > Stylesheet).
I know that everyone’s style is different, so change the Genesis opt-in form how you like. That’s it!
Building your email list
Did you notice that we didn’t mention any plugin? That’s right, it’s not necessary.
Although you can use the Genesis eNews Extended plugin and place it after the post section (I use it in the footer), somehow I preffer without the plugin.
Now that you’ve successfully added your opt-form after your blog posts, it’s time to boost your email list.
If you have some difficulties in use of this tutorial, or would like another one, put it in the comments below.