Kjapp og trygg hosting for Wordpress

CSS-hjelp: Mystisk grå boks i kommentarfeltet som jeg vil ha bort..

Marita

ordleker
Om dere ser her: Slik gÃ¥r du ned i vekt | smartetips.no og i kommentarfeltet, så er det en grå liten boks til venstre under hver kommentar, som blir rød når man tar musa over.

Har sett dette på iallfall to andre blogger som har samme theme som meg, så dette er tydeligvis noe fra themet. Jeg vil ha hele boksen fjernet, for den gjør jo ingenting annet enn å bare stå der og irritere meg - men hva i koden fjerner jeg?

Her er koden for comments.php:


<?php if ( have_comments() ) : ?>
<h3 id="comments"><?php comments_number(__( 'No Responses', "magazine-basic"), __('One Response', "magazine-basic"), __('% Responses', "magazine-basic"));
printf(__(" to “ %s ”", "magazine-basic"), the_title('','',false)); ?></h3>

<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('callback=mytheme_comment'); ?>
</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"><?php _e("Comments are closed.", "magazine-basic"); ?></p>

<?php endif; ?>
<?php endif; ?>


<?php if ('open' == $post->comment_status) : ?>

<div id="respond">

<h3><?php comment_form_title(__('Legg igjen en kommentar', "magazine-basic"), __('Leave a reaply to %s', "magazine-basic") ); ?></h3>

<div class="cancel-comment-reply">
<?php cancel_comment_reply_link(); ?>
</div>

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php printf(__('You must be <a href="%1$s/wp-login.php?redirect_to=%2$s">logged in</a> to post a comment.', "magazine-basic"), get_option('siteurl'), urlencode(get_permalink())); ?></p>
<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( $user_ID ) : ?>

<p><?php printf(__('Logged in as <a href="%1$s/wp-admin/profile.php">%2$s</a>. ', "magazine-basic"), get_option('siteurl'), $user_identity); ?><?php printf(__('<a href="%1$s" title="Log out of this account">Log out &raquo;</a>', "magazine-basic"), wp_logout_url(get_permalink())); ?></p>

<?php else : ?>

<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small><?php _e("Navn", "magazine-basic"); if ($req) _e("(nødvendig)", "magazine-basic"); ?></small></label></p>

<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small><?php _e('Mail (blir ikke publisert)', "magazine-basic"); if ($req) _e("(nødvendig)", "magazine-basic"); ?></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('Hjemmeside', "magazine-basic"); ?></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="" rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Post', "magazine-basic"); ?>" />
<?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 ?>
 
Sist redigert:

Marita

ordleker
Prøv å ta bort:

<div class="reply">
</div>

Det fant jeg ikke, men jeg jukset og endret følgende i css-fila;

ol.commentlist li div.reply { background:#999; border:1px solid #666; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; color:#fff; font:bold 9px/1 helvetica,arial,sans-serif; padding:6px 5px 4px; text-align:center; width:36px; }

ol.commentlist li div.reply:hover { background:#cc0000; border:1px solid #cc0000; }



TIL:


ol.commentlist li div.reply { background:#fff; border:0px solid #666; border-radius:0px; -moz-border-radius:0px; -webkit-border-radius:0px; color:#fff; font:bold 9px/1 helvetica,arial,sans-serif; padding:6px 5px 4px; text-align:center; width:36px; }

ol.commentlist li div.reply:hover { background:#ffffff; border:0px solid #ffffff; }

---

Da ble boksen forsåvidt usynlig, bortsett fra annenhver kommentar, som har grå bakgrunn - der blir da boksen hvit..
 
Topp