Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    I would also like to remove “You have to agree to the comment policy.”

    Did you find a solution?

    Can Yoast can get back to us?

    Thanks

    Nick

    I cannot even find the language files to at least translate it…

    Hey guys.
    I found a solution, this text is in the file: /wp-content/plugins/yoast-comment-hacks/inc/class-comment-form-hacks.php (Line 34).
    Good luck to you.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    Thanks dear, will try.

    Thanks wpfisher,

    I try and it works perfectly (just simply remove or translate the text between the 2 little ‘)

    But the problem with this solution is that every update of the plugin will erase this correction and we will have to redo this again and again…

    I hope Yoast will provide us a more lasting solution (or simply remove this text from the plugin).

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    Perhaps, we can use custom CSS also to hide the text.

    Add this to your functions file.

    // Get rid of text before comment box.
    add_filter( ‘comment_form_defaults’, ‘remove_pre_comment_text’ );
    function remove_pre_comment_text( $arg ) {
    $arg[‘comment_notes_before’] = “”;
    return $arg;
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove – You have to agree to the comment policy?’ is closed to new replies.