WordPress.org

Ready to get started?Download WordPress

Forums

How to style comments links? (4 posts)

  1. mtphoto
    Member
    Posted 4 years ago #

    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 »'); ?>

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    That depends upon your theme.

  3. mtphoto
    Member
    Posted 4 years ago #

    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?

  4. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic