Support » Fixing WordPress » Comment form file

  • Hello,

    There is a complicated issue for me.
    I want to change the placeholder text of the comment form but I can’t find the file for change it.
    http://prnt.sc/nohr6s
    Please assist me.

    Thanks in advance.

    • This topic was modified 10 months, 3 weeks ago by natasha006.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Check out this article: https://www.inkthemes.com/how-to-easily-customize-wordpress-comment-form/

    Also, make sure you always use a child theme when editing theme files, https://developer.wordpress.org/themes/advanced-topics/child-themes/, if you do not use a child theme you will lose changes you make to the theme’s PHP files when the theme developer issues an update.

    Hope this helps. Once you find a solution please tag the thread as resolved.

    Hi Davood,
    Thanks for your reply.

    I can’t change the default text.
    If possible please assist me more.
    My theme have a default comment form and I want to change it.
    after replace “inkthemes” code site will go down!
    This is the default form on comment.php in the comment form section:

    comment_form(
    		array(
    			'must_log_in'			=> '<p class="must-log-in">'.  sprintf( esc_html__( 'You must be %1$slogged in%2$s to post a comment.', 'oceanwp' ), '<a href="'. wp_login_url( apply_filters( 'the_permalink', get_permalink() ) ) .'">', '</a>' ) .'</p>',
    			'logged_in_as'			=> '<p class="logged-in-as">'. esc_html__( 'Logged in as', 'oceanwp' ) .' <a href="'. admin_url( 'profile.php' ) .'">'. $user_identity .'</a>. <a href="' . wp_logout_url( get_permalink() ) .'" title="'. esc_html__( 'Log out of this account', 'oceanwp' ) .'">'. esc_html__( 'Log out &raquo;', 'oceanwp' ) .'</a></p>',
    			'comment_notes_before'	=> false,
    			'comment_notes_after'	=> false,
    			'comment_field'			=> '<div class="comment-textarea"><textarea name="comment" id="comment" cols="39" rows="4" tabindex="100" class="textarea-comment" placeholder="'. esc_html__( 'Your Comment Here...', 'oceanwp' ) .'"></textarea></div>',
    			'id_submit'				=> 'comment-submit',
    			'label_submit'			=> esc_html__( 'Post Comment', 'oceanwp' ),
    		)
    	); ?>

    `

    • This reply was modified 10 months, 3 weeks ago by natasha006.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comment form file’ is closed to new replies.