How To Permanently Keep The Subscription Checkbox Checked in Subscribe To Comments WordPress Plugin

Subscribe to comments is one of the best plugins, every wordpress user must have on their blogs in order to build interactivity. You can download the plugin from here.

Earlier, there was an option to permanently keep the subscription checkbox checked, but it is not available any more. With simple modification to the plugins code, you can get this feature back.

There are fair number of people who support keeping the checkbox checked permanently by default and then those who think its a bad idea to keep the checkbox checked permanently.

Tip for those who do not want to keep the checkbox checked always :

Under normal conditions, if you call the plugin hook after the comment box, the subscribe checkbox may go unnoticed as it is placed after the message text box. To avoid this, you can place the subscription checkbox after the website box and before message text area, this will the user an opportunity to decide if he wants to be subscribed to that post or not.

Here’s how you can achieve it :

1> Go to comments.php
2> Find this line

<label for=”url”><small>Website</small></label>

or something similar if you are using any custom comments plugin

3> Call the subscription checkbox hook right after it

<p> <?php show_subscription_checkbox(); ?> </p>

Now the subscription option will be available right after the website option like this :

How To Permanently Keep The Subscription Checkbox Checked in Subscribe To Comments WordPress Plugin

Here’s how you can have the subscribe to comments checkbox checked aways :

1> Go to plugin editor and open subscribe to comments plugin

2> Find the line :

<input type=”checkbox” name=”subscribe” id=”subscribe” value=”subscribe” style=”width: auto;” <?php if ( $checked_status ) echo ‘checked=”checked” ‘; ?>/>

3> Replace it with

<input type=”checkbox” name=”subscribe” id=”subscribe” value=”subscribe” style=”width: auto;” checked=”checked” />

4> Save the changes and your checkbox will always be checked.

Be Sociable, Share!

11 comments

Leave a Reply

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