Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • i dont now about php, but first try resize the gravatar it work for me in the past.
    and here taken from my template.
    <div class=”avatar”><?php echo get_avatar( $comment, 32 ); ?></div>
    or
    <div class=”gravatar”>
    <?php if (function_exists(‘get_avatar’)) { //if wordpress 2.5+
    echo get_avatar( get_comment_author_email(), ’32’ );
    } else {//if wordpress <2.5
    $email = $comment->comment_author_email;
    $default = “”; // link to your default avatar
    $size = 32; // size in pixels squared
    $grav_url = “https://www.gravatar.com/avatar.php?gravatar_id=
    ” . md5($email) . “&default=” . urlencode($default) . “&size=” . $size;
    ?>
    <img src=”<?=$grav_url ?>” height=”<?=$size ?>” width=”<?=$size ?>” alt=”User Gravatar” />
    <?php
    }
    ?>
    </div>

    Thread Starter ewwink

    (@ewwink)

    Thanks for your response, i mean like this: Original Category menu:

    • category1 (parent)
    • category2 (virtual SubCategory)
    • category3 (virtual SubCategory)
    • category4 (parent)

    Category menu after reorder:

    • category1 (parent)
      category2 (virtual SubCategory)
      category3 (virtual SubCategory)
    • category4 (parent)

    maybe i should do this manually via text widget. thanks

Viewing 2 replies - 16 through 17 (of 17 total)