Implement Subscribe to Comments

Robert Windisch edited this page Jul 25, 2015 · 1 revision

Deutsch / German

Clone this wiki locally

The popular Plugin Subscribe to Comments adds a checkbox right below the send-button at the comment form. This is not optimal. But there is a possibility to position the markup above the text area. You just have to write in your functions.php the following code:

if (function_exists('show_subscription_checkbox')) {
    add_filter('comment_form_field_comment' , 'show_subscription_checkbox');
}

You also have to adjust your CSS. Add this to your theme.css of your Childthemes:

.subscribe-to-comments {
    display:  block;
    margin:0.5em 0;
    padding: 3px 0.5em;
    position: relative
}
.subscribe-to-comments label { display: inline; padding-left: 5px }