私のWordPressのサイトでは、21のテーマのために子供のテーマが使用されています。私が抱えている問題は、各コメントの隣に、壊れた画像リンクが表示されることです。しかし、これはChrome、Safari、Operaでのみ発生します。 FirefoxとIEではそれはありません。Wordpressのコメント、Twenty-Elevenのテーマのブラウザ表示に関する問題
奇妙なことは、壊れた画像のリンクを右クリックしてソースコードを調べると、そこには何もありません。 DOMではどこにもない!
私はWordpressのディスカッション設定に行き、アバター表示を表示しないで、デフォルトのアバターを空白に変更しようとしました。私はtween-elevenのfunctions.php(twentyeleven-comment関数で)からアバターを表示するためのコードをすべて削除しました。私は考えることのできるすべての可能なCSSソリューションを試しましたが、私はそれらを去らせることはできません。
あなたは私がここで話しているかを見ることができます:http://www.andersonandsonsfh.com/2011/07/gordon-severson/
私は本当に助けてくださいので、ここでtwentyeleven_comment
if (! function_exists('twentyeleven_comment')) :
function twentyeleven_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
switch ($comment->comment_type) :
case 'pingback' :
case 'trackback' :
?>
<li class="post pingback">
<p><?php _e('Pingback:', 'twentyeleven'); ?> <?php comment_author_link(); ?><?php edit_comment_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?></p>
<?php
break;
default :
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<article id="comment-<?php comment_ID(); ?>" class="comment">
<footer class="comment-meta">
<div class="comment-author vcard">
<?php
/* translators: 1: comment author, 2: date and time */
printf(__('%1$s on %2$s <span class="says">said:</span>', 'twentyeleven'),
sprintf('<span class="fn">%s</span>', get_comment_author_link()),
sprintf('<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>',
esc_url(get_comment_link($comment->comment_ID)),
get_comment_time('c'),
/* translators: 1: date, 2: time */
sprintf(__('%1$s at %2$s', 'twentyeleven'), get_comment_date(), get_comment_time())
)
);
?>
<?php edit_comment_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
</div><!-- .comment-author .vcard -->
<?php if ($comment->comment_approved == '0') : ?>
<em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'twentyeleven'); ?></em>
<br />
<?php endif; ?>
</footer>
<div class="comment-content"><?php comment_text(); ?></div>
<div class="reply">
<?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply <span>↓</span>', 'twentyeleven'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
</div><!-- .reply -->
</article><!-- #comment-## -->
<?php
break;
endswitch;
}
endif; // ends check for twentyeleven_comment()
のための私のコードは、含まれるようにどのようなコードを知りません!これは私を夢中にさせている!
ああ私の良さ。ありがとうございました。どのように私はそれを逃したのか分からない! –