• Resolved ramyadhamu

    (@ramyadhamu)


    Hi i created my website using 4.2.2 version. My website name called futurdilaog.com. I have used oxygen theme but under leave a reply there is no post comment button. How could others able to pass the comment

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

    I could find same thread as yours. I hope that will help you.

    https://wordpress.org/support/topic/comment-submit-button-disappeared

    Let me know if that does not fix your issue.

    Thanks,

    Thread Starter ramyadhamu

    (@ramyadhamu)

    Thanks Accuwebhosting

    I am new to wordpress can u explain me in functions.php under which line i have to post that two lines

    Thread Starter ramyadhamu

    (@ramyadhamu)

    $args = array(
    ‘fields’ => apply_filters( ‘comment_form_default_fields’, $fields ),
    ‘comment_field’ => ‘<p class=”form-textarea req”><!–<label for=”comment”>’ . __( ‘Comment’, ‘oxygen’ ) . ‘</label>–><textarea name=”comment” id=”comment” cols=”60″ rows=”10″></textarea></p>’,
    ‘must_log_in’ => ‘<p class=”alert”>’ . sprintf( __( ‘You must be logged in to post a comment.’, ‘oxygen’ ), wp_login_url( get_permalink() ) ) . ‘</p><!– .alert –>’,
    ‘logged_in_as’ => ‘<p class=”log-in-out”>’ . sprintf( __( ‘Logged in as %2$s.’, ‘oxygen’ ), admin_url( ‘profile.php’ ), esc_attr( $user_identity ) ) . ‘ ‘ . __( ‘Log out →’, ‘oxygen’ ) . ‘</p><!– .log-in-out –>’,
    ‘comment_notes_before’ => ”,
    ‘comment_notes_after’ => ”,
    ‘id_form’ => ‘commentform’,
    ‘id_submit’ => ‘submit’,
    ‘title_reply’ => __( ‘Leave a Reply’, ‘oxygen’ ),
    ‘title_reply_to’ => __( ‘Leave a Reply to %s’, ‘oxygen’ ),
    ‘cancel_reply_link’ => __( ‘Click here to cancel reply.’, ‘oxygen’ ),
    ‘label_submit’ => __( ‘Post Comment →’, ‘oxygen’ ),
    );

    return $args;
    }

    Hi,

    At WordPress dashboard, Go to Appearance –> Editor and select Theme Functions (functions.php). Make yourself a copy of all the text in case you mess up so you can revert back.

    Locate the text to replace. Just CTRL+F search of ‘id_form’ => ‘commentform’

    Comment out the old text rather than deleting it. So beginning with the line that reads ‘id_form’ => ‘commentform’,

    Your code may look like this:

    /* 'id_form' => 'commentform',
        'id_submit' => 'submit',
        'title_reply' => __( 'Leave a Reply', 'origin' ),
        'title_reply_to' => __( 'Leave a Reply to %s', 'origin' ),
        'cancel_reply_link' => __( 'Click here to cancel reply.', 'origin' ),
        'label_submit' => __( 'Post Comment →', 'origin' ),
        */

    Replace following code:

    'id_form' => 'commentform',
        'id_submit' => 'submit',
        'class_submit' => 'submit',
        'name_submit' => 'submit',
        'title_reply' => __( 'Leave a Reply' ),
        'title_reply_to' => __( 'Leave a Reply to %s' ),
        'cancel_reply_link' => __( 'Cancel reply' ),
        'label_submit' => __( 'Post Comment' ),
        'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />',
        'submit_field' => '<p class="form-submit">%1$s %2$s</p>',
        'format' => 'xhtml'
        );

    Click Update File to save and then check to make sure it worked.

    For more information, refer following URL:

    https://wordpress.org/support/topic/comment-submit-button-disappeared-after-42-update?replies=11#post-6886382

    Note:-Please take necessary backup before you make any changes.

    Thanks,

    Thread Starter ramyadhamu

    (@ramyadhamu)

    Hi Accuwebhosting
    I got this error after updating the above code…
    Parse error: syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) in D:\Hosting\test_temp\wp-content\themes\oxygen\functions.php on line 244

    ‘comment_notes_before’ => ”,
    ‘comment_notes_after’ => ”,
    ‘id_form’ => ‘commentform’,
    ‘id_submit’ => ‘submit’,
    ‘class_submit’ => ‘submit’,
    ‘name_submit’ => ‘submit’,
    ‘title_reply’ => __( ‘Leave a Reply’ ),
    ‘title_reply_to’ => __( ‘Leave a Reply to %s’ ),
    ‘cancel_reply_link’ => __( ‘Cancel reply’ ),
    ‘label_submit’ => __( ‘Post Comment’ ),
    ‘submit_button’ => ‘<input name=”%1$s” type=”submit” id=”%2$s” class=”%3$s” value=”%4$s” />’,
    ‘submit_field’ => ‘<p class=”form-submit”>%1$s %2$s</p>’,
    ‘format’ => ‘xhtml’
    );

    return $args;
    }

    Hi,

    An error you have been receiving is PHP error. It occurs mostly when you have not closed the parenthesis or you are missing ; in line prior to the indicated line.

    In you case, you are receiving error in functions.php on line 244, you should check the line 243.

    Also, make sure you have been correctly following suggestions shown in following URL:

    https://wordpress.org/support/topic/comment-submit-button-disappeared-after-42-update?replies=11#post-6886382

    Note:-Please take necessary backup before you make any changes.

    Thanks,

    Thread Starter ramyadhamu

    (@ramyadhamu)

    Hi i have posted my entire code…. But i have set all the paranthesis

    Thread Starter ramyadhamu

    (@ramyadhamu)

    Hey issue got resolved. Thank you it worked

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Post Comment Button not their’ is closed to new replies.