WordPress.org

Ready to get started?Download WordPress

Forums

Graphic link for leave a comment (3 posts)

  1. damonlee
    Member
    Posted 6 years ago #

    My client wants a more straight forward link to "leave a comment" besides the default "comment" that is present.

    I want to create my own graphic and assign the php function to it (i'm going to be doing this on index.php)

    any ideas as far as syntax?? thank you

  2. pizzaman
    Member
    Posted 6 years ago #

    Here's what I use:

    <a href="<?php comments_link('', false); ?>" title="Comment on this article"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icon_comment.gif" alt="Comment on this article" /></a>

    I put the file icon_comment.gif in an images folder in the stylesheet folder. You can change this part to suit your needs. Also, you may want to enclose this code in a div and style it to suit your needs.

  3. damonlee
    Member
    Posted 6 years ago #

    Thanks pizza, that worked!

Topic Closed

This topic has been closed to new replies.

About this Topic