kkizkk 11 ارسال شده در اسفند 91 گزارش بازنشر ارسال شده در اسفند 91 با سلامچگونه میتوان کدهای واقع در انتهای بخش نظرات (پست ها) را حذف کرداین کدها بین کادر نظرات و دکمه ارسال نظر وجود دارد<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>از بخش ویرایش وردپرس تنها نوشته زیر حذف می شود و کد حذف نمی شودYou may use these HTML tags and attributes:و آیا حذف این مورد در روند سئو سایت تفاوتی ایجاد می کند یا خیرخیلی جستوجو کردم و به نتیجه ای نرسیدم ممنون میشم راهنمایی کنید نقل قول لینک به ارسال
mehral 785 ارسال شده در اسفند 91 گزارش بازنشر ارسال شده در اسفند 91 درود در فایل comments.php تابع comment_form();رو پیدا کن با این جابه جاش کن$comments_args = array( 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>');comment_form($comments_args);حالا اگه اون دو قسمتی که مشخص کردم میخوای نباشه تنها کار اینه که value شونو خالی بزاری $comments_args = array( 'comment_notes_before' => '', 'comment_notes_after' => '');comment_form($comments_args); 3 نقل قول لینک به ارسال
kkizkk 11 ارسال شده در اسفند 91 مالک گزارش بازنشر ارسال شده در اسفند 91 ممنون از راهنمایتونبخش دوم و سوم صحبتهای شما در رابطه با کد جایگزین رو کاملا متوجه شدم ولی چنین تابعی در فایل comments.php پیدا نکردم که جایگزین کنممنظورتون خط آخر کد زیر هست ؟ ممنون میشم بفرمایید در کجای کد زیر تغییرات لازم را ایجاد کنممحتویات فایل Comments.php :<div id="comments" class="comments"><?php if ( post_password_required() ) : ?> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'PixFill' ); ?></p> <!-- #comments --> <?php return; endif;?> <?php if ( have_comments() ) : ?> <h1 class="heading colr"><?php printf( _n( 'Comments %2$s', '%1$s Comments %2$s', get_comments_number(), 'PixFill' ),number_format_i18n( get_comments_number() ), '' );?></h1> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'PixFill' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'PixFill' ) ); ?></div> </div> <!-- .navigation --> <?php endif; // check for comment navigation ?> <ul> <?php wp_list_comments( array( 'callback' => 'PixFill_comment' ) ); ?> </ul> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'PixFill' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'PixFill' ) ); ?></div> </div><!-- .navigation --> <?php endif; else : if ( ! comments_open() ) :?> <?php endif; // end ! comments_open() ?> <?php endif; // end have_comments() ?></div><?phpglobal $post_id;$defaults = array( 'fields' => apply_filters( 'comment_form_default_fields',array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name','mytheme' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1" />' . '</p><!-- #form-section-author .form-section -->', 'email' => '<p class="comment-form-email">' . '<label for="email">' . __( 'Email','mytheme' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"/>' . '</p><!-- #form-section-email .form-section -->', 'url' => '<p class="comment-form-url">' . '<label for="url">' . __( 'Website','mytheme' ) . '</label>' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" />' . '<!-- #<span class="hiddenSpellError" pre="">form-section-url</span> .form-section -->' ) ), 'comment_field' => '<p class="comment-form-comment">' . '<label for="comment">' . __( 'Comment','mytheme' ) . '</label>' . '<textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea>' . '</p><!-- #form-section-comment .form-section -->', 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a title="Log out of this account" href="%s">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email is <em>never</em> published nor shared.','mytheme' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>', 'comment_notes_after' => '<dl class="form-allowed-tags"><dt>' . __ ( 'You may use these HTML tags and attributes:' ) . '</dt><code><dd>' . allowed_tags() . '</code></dd>', 'id_form' => 'commentform', 'id_class' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply','mytheme' ), 'title_reply_to' => __( 'Leave a Reply to %s','mytheme' ), 'cancel_reply_link' => __( 'Cancel reply','mytheme' ), 'label_submit' => __( 'Post Comment','mytheme' ),); ?><?php comment_form($defaults, $post_id); ?> نقل قول لینک به ارسال
mehral 785 ارسال شده در اسفند 91 گزارش بازنشر ارسال شده در اسفند 91 کد اصلاح شده <div id="comments" class="comments"><?php if ( post_password_required() ) : ?> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'PixFill' ); ?></p> <!-- #comments --> <?php return; endif;?> <?php if ( have_comments() ) : ?> <h1 class="heading colr"><?php printf( _n( 'Comments %2$s', '%1$s Comments %2$s', get_comments_number(), 'PixFill' ),number_format_i18n( get_comments_number() ), '' );?></h1> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'PixFill' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'PixFill' ) ); ?></div> </div> <!-- .navigation --> <?php endif; // check for comment navigation ?> <ul> <?php wp_list_comments( array( 'callback' => 'PixFill_comment' ) ); ?> </ul> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'PixFill' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'PixFill' ) ); ?></div> </div><!-- .navigation --> <?php endif; else : if ( ! comments_open() ) :?> <?php endif; // end ! comments_open() ?> <?php endif; // end have_comments() ?></div><?phpglobal $post_id;$defaults = array( 'fields' => apply_filters( 'comment_form_default_fields',array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name','mytheme' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1" />' . '</p><!-- #form-section-author .form-section -->', 'email' => '<p class="comment-form-email">' . '<label for="email">' . __( 'Email','mytheme' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"/>' . '</p><!-- #form-section-email .form-section -->', 'url' => '<p class="comment-form-url">' . '<label for="url">' . __( 'Website','mytheme' ) . '</label>' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" />' . '<!-- #<span class="hiddenSpellError" pre="">form-section-url</span> .form-section -->' ) ), 'comment_field' => '<p class="comment-form-comment">' . '<label for="comment">' . __( 'Comment','mytheme' ) . '</label>' . '<textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea>' . '</p><!-- #form-section-comment .form-section -->', 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a title="Log out of this account" href="%s">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email is <em>never</em> published nor shared.','mytheme' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>', 'comment_notes_after' => '', 'id_form' => 'commentform', 'id_class' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply','mytheme' ), 'title_reply_to' => __( 'Leave a Reply to %s','mytheme' ), 'cancel_reply_link' => __( 'Cancel reply','mytheme' ), 'label_submit' => __( 'Post Comment','mytheme' ), ); ?><?php comment_form($defaults, $post_id); ?> 4 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .