Support » Themes and Templates » How to style comments links?
6 years, 8 months 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 »'); ?>
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?
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>