Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

Viewing 2 posts - 1 through 2 (of 2 total)

highlight admin comments

Home Forums Free Theme Support Zenon Lite highlight admin comments

  • #95768

    fafa

    Hello

    I want add a small icon and background for admin comment. I know which css should I use but I don’t know php.

    I see some post that say we should replace :

    <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"></li>

    by :
    <li class="<?php if ($comment->user_id == 1) $oddcomment = "authorstyle"; echo $oddcomment; ?>"></li>

    but in function of zenon theme there is this code :

    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
    and
    `<div id=”comment-<?php comment_ID(); ?>” class=”comment-body”> ‘

    how can I use this without use plugin.

    so thanks for your helps.

    #95774

    Towfiq I.

    administrator

    replace this:

    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">

    with this:

    <li class="<?php if ($comment->user_id == 1) $oddcomment = "authorstyle"; echo $oddcomment; ?>" <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">

The topic ‘highlight admin comments’ is closed to new replies.