June 20, 2013

How to: Place Subscribe to Comments Check Box Above Submit Button

Subscribe to comment is most well know WordPress plugin used to subscribe to the comment pages with a single click. It automatically notify to subscribed users via email if there is new comment on the page. Once you installed this plugin, subscription check box appears below “Submit” button of each pages of comment section.

Notify Comment

Most of the commentator may not notice Notify me of followup comments via e-mail check box which contains after the submit button. But its more better to place it above “Submit” button of comment form for easy visual. So, lets see how we can do that.

First you have to install and active Subscribe to Comment plugin. If you already have it, then just skip this step. Locate the following folder in your hosting account.

/public_html/wp-content/themes/YOUR_THEME_NAME/lib/functions

Make sure you have replaced YOUR_THEME_NAME with your theme name. Then edit comment_functions.php file.

Subscribe to Comment

Now, search for the follow lines:

<textarea name=”comment” id=”comment” tabindex=”4″></textarea>
<button type=”submit” name=”submit” id=”submit” tabindex=”5″>

Note that the above code may vary from different template. Paste the following code between the above lines.

<?php show_subscription_checkbox(); ?>

Then it must look like this:

<textarea name=”comment” id=”comment” tabindex=”4″></textarea>

<?php show_subscription_checkbox(); ?>

<button type=”submit” name=”submit” id=”submit” class=”button” tabindex=”5″>

Save the file and your’re just done! Load any of your blog post page and view the comment section. Now, subscription option but appear below comment form or above “Submit Comment” button. From now, your reader can easily notice comment subscription option.