Forums

[resolved] Changing "Leave a Reply" on comments form (8 posts)

  1. twiggs
    Member
    Posted 5 months ago #

    I am using My White Theme on a blog that I'm designing, and I want to change Leave a Reply to something else in portuguese, but I don't know where to change it on the php files.

    Does someone know something to help me? Thank you!

    The php code on Comments is the following:

    [code moderated - please follow the forum rules for posting ocde]

  2. alchymyth
    The Sweeper
    Posted 5 months ago #

  3. twiggs
    Member
    Posted 5 months ago #

    Thank you, but this does not solve my question, as I cannot find that line of code in order to change it, I had tried that before as well...

    My theme does not have this: <?php comment_form(); ?>

    So I need another solution...

    If anyone has something to suggest, be my guest!

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    comment_form($args);

    this...is that

    its at the bottom of your comments.php

    you can work withing the $args array that already exists in that theme, directly above the bit of code I just posted

  5. twiggs
    Member
    Posted 5 months ago #

    sorry, but i'm a newbie on php... can someone be a little bit more explicit?

    i have this code on comments.php:

    '$args = array(
    'comment_field' => '<p class="comment-form-comment">Comment
    <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
    'comment_notes_after' =>'<p class="comment-field">'.$format.'</p>'
    );
    comment_form($args);'

    where do i need to write to change Leave a Reply for something like "Don't be shy, leave your comment!"?

    Thank you!

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    $args = array(
    	'comment_field' => '<p class="comment-form-comment">Comment<br /><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
    
    	'comment_notes_after' =>'<p class="comment-field">'.$format.'</p>',
    
             'title_reply'=>'Comments Make Me Happy'
    					);
    	comment_form($args);

    something like that should work

  7. twiggs
    Member
    Posted 5 months ago #

    Perfect! Thank you!!!

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    Sure, I'm glad that worked out for you!!

Reply

You must log in to post.

About this Topic

Tags