Using Feedburner in WP Premium

Posted by admin 10 September, 2008

In a previous post,  I found my new theme.    I am still very pleased with it but when I was “kicking the tires”, I realized the RSS e-mail subscriptions form was not working.   When digging into the code I noticed that I needed to make a change to get it to work.

In order to make the changes we need to edit the WP Premium header.php file.  Near the bottom, you will find the “subscribeform” div (see below).

<div class="subscribeform">
 <p>Subscribe via Email </p>
   <form action="enter your feed address here" method="get">
     <input type="text" value="" class="input" />
     <input type="button" class="sbutton" value="Subscribe" />
   </form>
 </div>

This is the only place we will need to make edits.   First you need to replace the “enter your feed address here” with the Feedburner address http://www.feedburner.com/fb/a/emailverify and change the method from “get” to “post“.

On the first input line, we need to add name=”email” before the class=”input” .  We also need to change the input type on the 2nd input line.   Change the type=”button” to type=”submit” .

But we aren’t done yet, we also need to add 2 hidden input lines to this html form.   One needs to be named “title” with of a value of your blog’s name.   For this blog it should look like:

<input type="hidden" value="WP Theme 4 Free" name="title"/>

The second hidden input needs to be named “url” with a value of “http://feeds.feedburner.com/~e?ffid=YOUR_FEED_BURNER_ID“.   You can find this Feedburner ID in the code presented in the Publicize / Email subscriptions of your feedburner control panel.  For this blog it should look like:

<input type="hidden" value="http://feeds.feedburner.com/~e?ffid=452013" name="url"/>
When you put the whole thing together, the completed code should look like the following:
<div class="subscribeform">
  <p>Subscribe via Email </p>
  <form action="http://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open('http://www.feedburner.com', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
    <input type="text" value="" name="email" class="input" />
    <input type="submit" class="sbutton" value="Subscribe" />
    <input type="hidden" value="http://feeds.feedburner.com/~e?ffid=452013" name="url"/>
    <input type="hidden" value="WP Theme 4 Free" name="title"/>
  </form>
</div>

Rating 4.00 out of 5
Categories : News Tags : , , ,

Comments

No comments yet.


Leave a comment

(required)

(required)