• https://staticnightmare.org

    I have been trying to customize the comments-popup page to my liking, and it is finally taking form.
    But, this is one thing I can’t figure out:
    How to make the comment author, date and time text bold, underlined and in caps?

    I have tried with the obvious code, <u></u>,
    but all I got was a underline and a bigger space between the words.

    <?php if ($comments) { ?>

    <?php foreach ($comments as $comment) { ?>
    <li id="comment-<?php comment_ID() ?>">
    " target="new"><?php comment_author(); ?> — <?php comment_date() ?> @ "><?php comment_time() ?>
    <?php comment_text() ?>

    <?php } // end for each comment ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Make it like this:
    <?php foreach ($comments as $comment) { ?>
    <li id="comment-<?php comment_ID() ?>">
    " target="new"><span class="c-auth"><?php comment_author(); ?> a€?? <?php comment_date() ?> @ "><?php comment_time() ?></span>
    <?php comment_text() ?>

    and in your css, try
    .c-auth {
    font-weight:bold;
    text-transform:uppercase;
    border-bottom:1px solid #000;
    }

    Thread Starter cythera

    (@cythera)

    That worked, thank you!

    wow .. cool ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Comment author, h2 or underline?’ is closed to new replies.