• marywyar

    (@marywyar)


    I can’t seem to figure out how to get my comments area to look something like this:

    author’s name: their comment

    instead the author’s name is on one line, comment on the next… here is the tags I hve in my functions below that is the css for each class

    <div class="comment-author"><?php comment_author(); ?>: </div><div class="comment-text"><?php comment_text(); ?>


    .comment-author {
    font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #231f20;
    line-height: 21px;
    font-weight: 700;
    text-transform: lowercase;

    }
    .comment-text {
    font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #231f20;
    line-height: 21px;
    font-weight: 300;

Viewing 1 replies (of 1 total)
  • BrianWK

    (@brianwk)

    You could try one of two things. First are you missing a second div tag or did you not copy and paste it? If thats all good I would say replace the second div with a ‘span’ tag class .comment text like this.

    <div class="comment-author">
          <?php comment_author(); ?>: <span class="comment-text">
          <?php comment_text(); ?></span>
      </div>

    This should make it all one sentence. If this doesn’t work try a float left on the author and a float right on the

Viewing 1 replies (of 1 total)
  • The topic ‘comment author comment on same line’ is closed to new replies.