WordPress.org

Ready to get started?Download WordPress

Forums

Official Comments (2 posts)

  1. adeking
    Member
    Posted 7 years ago #

    Hi,

    By blog at - here

    I am trying to implement official comments by inner.geek.

    I am using the empowered blue with google adsence theme. This theme has zebra style comments at the moment so that every other comment has a background. Ideally I want to change this so that only my comments have a coloured background.

    Below is the li in the comments.php for the theme I am using. I presume this is what is giving the zebra effect for the comments.

    <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    			<cite><?php comment_author_link() ?></cite> Says:
    			<?php if ($comment->comment_approved == '0') : ?>
    			<em>Your comment is awaiting moderation.</em>
    			<?php endif; ?>
    			<br />
    
    			<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
    
    			<?php comment_text() ?>
    
    		</li>

    In the installation instructions for official comments it says I can modify the li with this code

    <li class="comment <?php echo (is_wpuser_comment() ? ' commentOfficialUser' : ''); ?>" id="comment-&lt?php comment_ID() ?>">

    This is what I want to use, but am confused becasue of the existing zebra effect in place.

    Can someone let me know what I need to do to implement this, it would be most aprechiated.

    Lots of love...

    Adrian

  2. mazdakam
    Member
    Posted 7 years ago #

    i suggest u do this:
    http://ariejan.net/2006/11/22/wordpress-author-comment-highlighting/

    i do it and it works for me
    don't try any plug in it is really better way i test more that 4 plug in and 7 way! and it is the best!

Topic Closed

This topic has been closed to new replies.

About this Topic