[Resolvido] Problema nos comentários
Olá!
Bem, ainda estou aprendendo a trabalhar com o Wordpress e está tudo indo bem, menos este pequeno problema com os comentários.
Eu fiz a tradução para português na página comments.php e mudei o Leave a comment para Comentar mas este texto está aparecendo ao lado dos comentários publicados e não em baixo aonde deveria.
Podem ver aqui um exemplo: /applications/core/interface/imageproxy/imageproxy.php?img=http://farm5.static.flickr.com/4022/4584018690_3982302937_o.jpg&key=5acd858c4f7e466295e8e1d4be6760fb5e9d956feecb17d534afa0d39cb2019c" alt="Imagem Postada" />
Onde pode estar o erro? Tinha instalado o plugin Gravatarbox mas achei que era por causa disso e desactivei mas afinal, o problema continua.
Ah, estou usando o thema CherryTruffle do Elegant Themes e em outros sites este problema não acontece.
Deixo aqui os códigos das páginas Comments.php e Style Default.css caso vos ajude a identificar o problema.
Desde já, obrigada!
/------------------------------------------------/
/--------------------[COMMENTS]------------------/
/------------------------------------------------/
.commentmetadata { text-transform: uppercase; color: #abab91; font-size: 12px; text-transform: uppercase; margin-top: 10px; }
#comments { margin-top: 30px; float: left; }
.commentmetadata a:link, .commentmetadata a:hover, .commentmetadata a:visited { color: #abab91; }
.fn, .fn a:link, .fn a:hover, .fn a:visited, .says { color: #e56100; font-family: Georgia; font-size: 17px; font-style: normal; }
.avatar { border: 5px solid #ffffff; margin-bottom: -15px; margin-right: 10px; width: 40px; height: 40px; }
.comment, .pingback { border-bottom: 1px solid #d2d2b8; margin-bottom: 15px; float: left; clear: both; width: 100%; list-style: none; }
.children .comment { border-top: 1px solid #d2d2b8; border-bottom: none; padding-top: 15px; margin-bottom: 0px; }
.comment-reply-link, .comment-reply-link:visited { color: #fff !important; display: block; font-weight: bold; background-color: #60aea9; padding: 2px 7px; float: right; text-transform: lowercase; font-size: 11px; margin-bottom: 10px; margin-top: -10px; }
.commentlist { float: left; margin-left: 0px; padding-left: 10px; }
.comment-reply-link:hover { background-color: #5cbdb7; color: #e5dac0; }
.cancel-comment-reply a:link, .cancel-comment-reply a:visited { color: #e5dac0 !important; display: block; font-weight: bold; background-color: #60aea9; padding: 0px 5px; text-transform: lowercase; font-size: 10px; float: left; clear: both; }
#commentform { clear: both; float: left; }
.cancel-comment-reply a:hover { background-color: #5cbdb7; color: #e5dac0; }
/------------------------------------------------/
/-----------------[COMMENT FORM]-----------------/
/------------------------------------------------/
#commentform { margin: 10px 0px 0px 20px; }
#commentform textarea { background: #f8f7f6; border: 1px solid #d6d3d3; width: 350px; padding: 10px; }
#commentform #email { font-size: 13px; background: #f8f7f6; border: 1px solid #d6d3d3; width: 220px; height: 20px; padding-left: 10px; padding-top: 6px; }
#commentform #author { font-size: 13px; background: #f8f7f6; border: 1px solid #d6d3d3; width: 220px; height: 20px; padding-left: 10px; padding-top: 6px; }
#commentform #url { font-size: 13px; background: #f8f7f6; border: 1px solid #d6d3d3; width: 220px; height: 20px; padding-left: 10px; padding-top: 6px; }
#commentform input { margin-bottom: 3px; }
?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<h3 id="comments"><?php comments_number(__('Sem Respostas','CherryTruffle'), __('Uma Resposta','CherryTruffle'), __('% Respostas','CherryTruffle') );?> <?php _e('para “','CherryTruffle') ?><?php the_title(); ?>”</h3>
<div style="clear: both;"></div>
<div class="navigation">
<div class="alignleft">
<?php previous_comments_link() ?>
</div>
<div class="alignright">
<?php next_comments_link() ?>
</div>
</div>
<ol class="commentlist">
<?php wp_list_comments('avatar_size=40'); ?>
</ol>
<div class="navigation">
<div class="alignleft">
<?php previous_comments_link() ?>
</div>
<div class="alignright">
<?php next_comments_link() ?>
</div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?><!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments" style="padding: 10px 0px 0px 0px; float: left;"><?php _e('Os comentários estão encerrados.','CherryTruffle') ?></p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<h3 style="float: left; margin-top: 30px;">
<?php comment_form_title( __('Deixe um comentário','CherryTruffle'), __('Leave a Reply to %s','CherryTruffle')); ?>
</h3>
<div class="cancel-comment-reply"> <small>
<?php cancel_comment_reply_link(); ?>
</small> </div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php _e('Você deve estar','CherryTruffle')?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('registado','CherryTruffle') ?></a> <?php _e('para publicar um comentário.','CherryTruffle') ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php _e('Registado como','CherryTruffle') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e('Sair;','CherryTruffle') ?> »</a></p>
<?php else : ?>
<p>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author"><small><?php _e('Nome','CherryTruffle') ?>
<?php if ($req) _e('(obrigatório)','CherryTruffle'); ?>
</small></label>
</p>
<p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email"><small><?php _e('E-Mail (não será publicado)','CherryTruffle') ?>
<?php if ($req) _e('(obrigatório)','CherryTruffle'); ?>
</small></label>
</p>
<p>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small><?php _e('Website','CherryTruffle') ?></small></label>
</p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
<p>
<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
</p>
<p>
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Enviar Comentário','CherryTruffle')?>" />
<?php comment_id_fields(); ?>
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>Discussão (8)
Carregando comentários...