Upgraded to WordPress 6.0 and have issues? Please check the hotfix which you need to apply.

Okay
  Public Ticket #1913441
cooments
Closed

Comments

  • veratio started the conversation

    cześć

    I can"t edit One comments and Edit and Reply.

    help please

  •  228
    Milingona replied

    Hello,

    You can change them by editing comments.php file.

    Kind regards,


    Milingona Support

    Follow on     Envato     Facebook     Twitter

  • veratio replied

    <?php 
    if ( post_password_required() ) {
    return;
    }
    ?>

    <div id="comments" class="vu_comments">
    <?php if ( have_comments() ) : ?>
    <div class="row">
    <div class="col-md-6">
    <h4 class="vu_c-count">
    <?php 
    $comments_number = get_comments_number();

    if( $comments_number >= 1 ) {
    printf( _n( '1 komentarz', 'komentarzy %s', $comments_number, 'bakery' ), number_format_i18n( $comments_number ) );
    } else {
    esc_html_e('Nie ma komentarzy', 'bakery');
    }
    ?>
    </h4>
    </div>
    <div class="col-md-6">
    <h4 class="vu_c-text"><?php esc_html_e('Zostaw komentarz', 'bakery'); ?></h4>
    </div>
    </div>

    <ol class="vu_c-list list-unstyled">
    <?php
    wp_list_comments(
    array(
    'style' => 'ol',
    'short_ping'  => true,
    'avatar_size' => 100,
    'callback' => 'bakery_comments'
    )
    );
    ?>
    </ol>

    <div class="vu_c-pagination text-center clearfix m-b-30">
    <div class="pull-left">
    <?php previous_comments_link('<span class="vu_c-p-item">'. esc_html__('poprzedni', 'bakery') .'</span>'); ?>
    </div>
    <div class="pull-right">
    <?php next_comments_link('<span class="vu_c-p-item">'. esc_html__('następny', 'bakery') .'</span>'); ?>
    </div>
    </div>
    <?php endif; ?>

    <?php if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
    <p class="vu_no-comments"><?php echo esc_html__( 'Komentarze nieaktywne.', 'bakery' ); ?></p>
    <?php endif; ?>

    <?php 
    if ( comments_open() ) : 

    $is_user_logged_in = is_user_logged_in();

    $args = array(
    'id_form'           => 'vu_c-form',
    'id_submit'         => 'submit',
    'class_submit'      => 'submit-comment btn btn-primary btn-inverse',
    'title_reply'       => esc_html__('Zostaw odpowiedź', 'bakery'),
    'title_reply_to'    => esc_html__('Zostaw odpowiedź dla %s', 'bakery'),
    'cancel_reply_link' => esc_html__('Skasuj odpowiedź', 'bakery'),
    'label_submit'      => esc_html__('Zatwierdź komentarz', 'bakery'),
    'comment_field' =>  '<div class="row"><div class="col-xs-12"><textarea id="comment" name="comment" class="form-control" rows="5" placeholder="'. esc_attr__('wpisz Twój komentarz', 'bakery') .'"></textarea></div></div>',
    'must_log_in' => '<p class="must-log-in m-b-15">'. wp_kses( sprintf(__( 'Musisz być <a href="%s">zalogowany</a>, by pozostawić komentarz.', 'bakery'), wp_login_url( apply_filters( 'the_permalink', get_permalink() ) )), array('a' => array('href' => array(), 'title' => array())) ) .'</p>',
    'logged_in_as' => '<p class="logged-in-as m-b-15">'. wp_kses( sprintf(__( 'Jesteś zalogowany jako <a href="%1$s">%2$s</a>. <a href="%3$s" title="Wyloguj się z tego konta">Wylogować?</a>', 'bakery'), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) )), array('a' => array('href' => array(), 'title' => array())) ) .'</p>',
    'comment_notes_before' => '<p class="comment-notes m-b-20">'. esc_html__('Twoj adres e-mail nie bedzie opublikowany.', 'bakery') .'</p>',
    'comment_notes_after' => '<div class="clear"></div>',
    'fields' => apply_filters( 'comment_form_default_fields', array(
    'author' =>
    '<div class="row"><div class="col-sm-6">'.
    '<input id="author" name="author" type="text" class="form-control" placeholder="'. esc_attr__('Wpisz swoje imię', 'bakery') .'" value="" size="30" /></div>',
    'email' =>
    '<div class="col-sm-6">'.
    '<input id="email" name="email" type="text" class="form-control" placeholder="'. esc_attr__('Wpisz swój e-mail', 'bakery') .'" value="" size="30" /></div></div>',
    'url' =>
    '<div class="row"><div class="col-xs-12">'.
    '<input id="url" name="url" type="text" class="form-control" placeholder="'. esc_attr__('Twoja strona internetowa', 'bakery') .'" value="" size="30" /></div></div>'
    )
    ),
    );

    comment_form($args);

    endif;
    ?>
    </div>

    this is changed code comments.php

    there havent finding frase. Edit, Reply

  •  228
    Milingona replied

    Sorry, you can find them at wp-content/themes/bakery/includes/functions.php file in line 150, 177 and 179.


    Milingona Support

    Follow on     Envato     Facebook     Twitter