WordPress.org

Support

Support » Themes and Templates » How to style comments links?

How to style comments links?

  • I’m using the following comment tag for my posts. How can I apply styles to these links?

    <?php comments_popup_link('Post a Comment', '1 Comment »', '% Comments »'); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    That depends upon your theme.

    In general, how can I style the links that this tag is generating?

    Otherwise, how can I insert CSS classes into the PHP comments tag, since there are no tags?

    Moderator Michael

    @alchymyth

    Forum Moderator

    add your own html tags around the code; example from TwentyTen:

    <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to style comments links?’ is closed to new replies.