• Hi,

    I’m trying to style my comments and am having a nightmare sorting it out. So I googled it and found this fantastic example:

    https://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/

    I tried working with the top one but my comment code appears to be different to that and I’m struggling to make it work, when using the same code he did I just get a parse error.

    My code looks like this:

    <ol>
    
    <?php foreach ($comments as $comment) : ?>
    <?php if ( get_comment_type() == "comment" ) : ?>
    
    <li class="comment-<?php comment_ID() ?>" class="<?php sandbox_comment_class() ?>">
    
    <?php sandbox_commenter_link() ?>
    
    <div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'sandbox'),
                                                                                    get_comment_date(),
                                                                                    get_comment_time(),
                                                                                    '#comment-' . get_comment_ID() );
                                                                                    edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?>
    
    <?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'sandbox') ?>
    
    <?php comment_text() ?>
    </div>
    </li>
    
    <?php endif; // REFERENCE: if ( get_comment_type() == "comment" ) ?>
    <?php endforeach; ?>
    
                                            </ol>

    Can anyone point me in the direction of a helpful site to help me skin my comments? I’ve been googling for 30 mins with no luck.

    Any help would be greatly appreciated.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Styling Comments’ is closed to new replies.