WordPress.org

Ready to get started?Download WordPress

Forums

Oulipo
Where to edit Comment Form (2 posts)

  1. Farouq
    Member
    Posted 3 years ago #

    I'm trying to replace "Leave a Reply" with "Leave a Comment" and I'm also trying to delete the message beneath the comment entry box where it says, "You may use these HTML...".

    I changed this in the legacy.comments.php but it doesn't do anything. Any help with this would be much appreciated.

    Cheers

    http://wordpress.org/extend/themes/oulipo/

  2. Nick Hamze
    Member
    Posted 3 years ago #

    Try placing this filter in your functions.php

    add_filter( 'comment_form_defaults', 'oulipo_comment_form_defaults' );
    function oulipo_comment_form_defaults( $defaults ) {
    
    	$defaults['title_reply'] = __( 'Leave a Comment' );
    	$defaults['title_reply_to'] = __( 'Leave a Comment to %s' );
    	$defaults['comment_notes_after'] = __( '' );
    
    	return $defaults;
    }

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags