Disclaimer before comment form?

Viewing 3 posts - 1 through 3 (of 3 total)
  • #20698
    Mikas
    Participant

    I want to place a disclaimer before the comment form on individual posts in the Enlightenment theme which briefly explains our commenting policy. Is there a hook or similar function that can do this?

    #20779
    Mikas
    Participant

    Can anyone help with this?

    #20907
    Daniel Tara
    Keymaster

    You can add a disclaimer with the following function:

    add_filter( 'comment_form_defaults', 'mytheme_comment_form_disclaimer' );
    
    function mytheme_comment_form_disclaimer( $fields ) {
    	$fields['comment_notes_before'] = 'Disclaimer text goes here.';
    	return $fields;
    }
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.