• I have text on my website that is under an h3 heading titled “comments-title”. Here is the css coding for it:

    .comments-title {
      font-size: 18px;
      line-height: 1.517em;
      font-family: 'BebasRegular', Arial, sans-serif;
      margin-bottom: 1.5em;
    }

    Here is the php coding that shows the comments-title:

    <h3 class="comments-title">
    				<?php
    					 printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'basically' ),
    						number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    				?>
    </h3>

    Here is the problem: On the comments section on my website, It displays the text “One thought on “Hello World” “. Which is great. But Hello World is styled under the h3 class “comments-title” and “One thoughts on” is not. The whole text “One thought under Hello World” should all be styled under the h3 class, not just half of it. I tried moving the ‘<span>’ tag before the ‘One thought on code but that didn’t work.

    Here’s my website: https://www.motodesignz.com/mx/2012/06/27/hello-world/#comments

    Can anyone help?

  • The topic ‘Comments list styling problem’ is closed to new replies.