apoosh 0 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 با سلام خدمت تمام دوستان و متخصصان عزیزچند وقت پیش به مشکل عجیبی بر روی سایتم برخوردم که هر چه تلاش کردیم، موفق به حل آن نشدیم.مشکل از این قرار است که در بخش دیدگاهها (کامنتها) هیچ کاربری آواتار ندارد! حالا چه آواتاری که به صورت دستی آپلود کرده باشد، چه تصویر پیش فرض وردپرس و چه گراواتار! هیچ کدام نمایش داده نمیشوند و کلا غیب شدند!هرکاری کردیم، افزونهها رو غیرفعال کردیم، باز فایدهای نداشت.لطفا کمک کنید که این آواتارها را برگردونیم.مثال: http://itresan.com/54863/best-and-worst-smartphones-of-2014.html نقل قول لینک به ارسال
SM-Mahdavi 5427 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 فایل comments.php پوسته پیشفرض وردپرس رو استفاده کنید ببینید حل میشه یا نه. قبلش تنظیمات رو هم بررسی کنید. آواتار رو از داخل تنظیمات هم میشه غیرفعال کرد. 2 نقل قول لینک به ارسال
apoosh 0 ارسال شده در آذر 93 مالک گزارش بازنشر ارسال شده در آذر 93 همه این موارد رو بررسی کردیم اما فایدهای نداشته نقل قول لینک به ارسال
علی زینلی 2114 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 سلامدقیقاً با چه کدی آواتار ها رو فراخوانی کردین؟:| 1 نقل قول لینک به ارسال
محسن غیاثی 1853 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 محتویات فایلهای comments.php و functions.php رو بذارین اینجا تا چک بشه. 2 نقل قول لینک به ارسال
apoosh 0 ارسال شده در دی 93 مالک گزارش بازنشر ارسال شده در دی 93 (ویرایش شده) ممنون از پاسخ شما خوبانمحتویات فایل Comment.php پوسته<?php/*** The template for displaying Comments.** The area of the page that contains both current comments* and the comment form. The actual display of comments is* handled by a callback to wellthemes_comment() which is* located in the functions.php file.** @package WellThemes* @file comments.php* @author Well Themes Team* @link http://wellthemes.com*/?><div id="comments" data-animation="fadeInUp"><?php if ( post_password_required() ) : ?><p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'wellthemes' ); ?></p></div><!-- /comments --><?php/* Stop the rest of comments.php from being processed,* but don't kill the script entirely -- we still have* to fully load the template.*/return;endif;?><?php // if has comments ?><?php if ( have_comments() ) : ?><div class="comments-title"><div class="title-wrap"><i class="fa fa-comments"></i><h3><?php printf(_n('یک دیدگاه', '%1$s دیدگاه', get_comments_number()), number_format_i18n( get_comments_number() ), 'wellthemes' ); ?></h3></div><div class="add-comment"><h6><a href="#respond"><?php _e('Leave Comment', 'wellthemes');?></a></h6></div></div><ol class="commentlist"><?php/* Loop through and list the comments. Tell wp_list_comments()* to use wellthemes_comment() to format the comments.* If you want to overload this in a child theme then you can* define wellthemes_comment() and that will be used instead.* See wellthemes_comment() in functions.php for more.*/wp_list_comments( array( 'callback' => 'wellthemes_comment' ) );?></ol><?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?><nav class="comment-nav"><h4><?php _e( 'Comment navigation', 'wellthemes' ); ?></h4><div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'wellthemes' ) ); ?></div><div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'wellthemes' ) ); ?></div></nav><?php endif; // check for comment navigation ?><?php/* If there are no comments and comments are closed, let's leave a little note, shall we?* But we don't want the note on pages or post types that do not support comments.*/elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :?><?php endif; ?><?php comment_form(); ?></div><!-- /comments -->محتویات function.php<?phprequire( get_template_directory() . '/framework/functions.php' );/*** Set the format for the more in excerpt, return ... instead of [...]*/function wellthemes_excerpt_more( $more ) {return '...';}add_filter('excerpt_more', 'wellthemes_excerpt_more');// custom excerpt lengthfunction wellthemes_excerpt_length( $length ) { return 30;}add_filter( 'excerpt_length', 'wellthemes_excerpt_length');?> ویرایش شده دی 93 توسط SM-Mahdavi نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .