WordPress.org

Ready to get started?Download WordPress

Forums

Adding a class to comments_popup_link() (3 posts)

  1. idnsensei
    Member
    Posted 5 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
    Member
    Posted 5 years ago #

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

  3. acmc
    Member
    Posted 5 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?
    ex:
    <div id="comments">
    <?php comments_popup_link...?>
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic