Hallo,
ich versuche gerade die verschachtelten Kommentare zu gestalten und habe ein kleines Problem. Die normalen Kommentare sehen gut aus aber die verschachtelten Kommentare werden mit einem
bestückt. Das verfälscht mein Design. Genau dieses ul möchte ich weg haben...
in meiner comments.php habe ich folgendes stehen:
in meiner function.php steht folgendes:
PHP
....
function oneblog_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class('clearfix'); ?> style="list-style: none;" id="li-comment-<?php comment_ID() ?>">
<!-- comments list item -->
<div class="row content-width content-height content-comments" id="comment-<?php comment_ID(); ?>">
<!-- comments list author image -->
<div class="small-3 medium-3 columns<?php if ($depth > 1) { echo " medium-offset-1"; } ?>">
<a href="#"><?php echo get_avatar( $comment->comment_author_email, 152 ); ?></a>
</div>
<!-- END comments list author image -->
<div class="small-12 medium-<?php if ($depth > 1) { echo "8"; } else { echo "9";} ?> columns">
<div class="row collapse">
<!-- comments list author name -->
<div class="small-12 medium-9 columns">
<h4><?php echo get_comment_author_link() ?></h4>
</div>
<!-- END comments list author name -->
<!-- comments list buttons -->
<div class="medium-3 columns text-right hide-for-small">
<!-- comments list buttons edit -->
<?php edit_comment_link(__('<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x shadow"></i>
<i class="fa fa-pencil fa-stack-1x fa-inverse"></i>
</span>' ),' ' ) ?>
<!-- END comments list buttons edit -->
<!-- comments list buttons reply -->
<?php comment_reply_link(array_merge( $args, array(
'depth' => $depth,
'max_depth' => $args['max_depth'],
'reply_text' => '<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x shadow"></i>
<i class="fa fa-reply fa-stack-1x fa-inverse"></i>
</span>'))) ?>
<!-- ENDcomments list buttons reply -->
</div>
<!-- END comments list buttons -->
</div>
<!-- comments list meta -->
<p class="content-comments-list-meta"><i class="fa fa-calendar"></i> <a class="content-comments-list-meta" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s um %2$s', 'oneblog'), get_comment_date(), get_comment_time()) ?></a></p>
<!-- END comments list meta -->
<!-- comments list text -->
<?php comment_text() ?>
<!-- END comments list text -->
<?php if ($comment->comment_approved == '0') : ?>
<em>Dein Kommentar muss noch freigeschaltet werden</em>
<?php endif; ?>
</div>
</div>
<!-- END comments list item -->
<?php
}
...
Alles anzeigen
Wie entferne ich dieses ul bei den verschachtelten Kommentaren?