The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Adding a class to comments_popup_link() (3 posts)

  1. idnsensei
    Posted 8 years ago #

    Hi! I want to add the class="comments" to
    <?php comments_popup_link('0', '1', '% '); ?>

    so that my comments will show with a background image. But i cant, i saw someone does this and on viewsource i see he does it by including class="comments" also there, but i cant : (

    His comments look this, i want my comments to show the same.

    <span>Comments:</span> <a href="http://domain.com/post/#comments" class="comments" title="Post Title">12</a>

  2. idnsensei
    Posted 8 years ago #

    Somebody please help me at least with an idea on how to do it : )

  3. acmc
    Posted 7 years ago #

    make a div in the style.css with a background image and enclose <?php comments_popup_link...?> within the div...

    does that make sense?
    <div id="comments">
    <?php comments_popup_link...?>

Topic Closed

This topic has been closed to new replies.

About this Topic