Support » Themes and Templates » Change "Leave Reply" to an image

  • Resolved spitfire72


    I am using a child theme of Twenty Twelve. I want to replace “Leave a Reply” with a small gif. Looking at the ‘content.php’ file, I found the code I need to edit. But how do I insert an image? I’m html and css savvy, but php always gets me. Here’s the line I need to edit…

    <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a reply’, ‘twentytwelve’ ) . ‘</span>’, __( ‘1 Reply’, ‘twentytwelve’ ), __( ‘% Replies’, ‘twentytwelve’ ) ); ?>

    Instead of “leave a reply” I want it to show this image:
    I know how to do it in css but then it would just be a bg image.


Viewing 1 replies (of 1 total)
  • where you see:

    _('Leave a reply', 'twentytwelve')

    Replace the text Leave a reply with the full link to your image:

    _('<img src="" />', 'twentytwelve')

    It worked fine in my Local Host install and you can then control the style through css using class “leave-reply”

Viewing 1 replies (of 1 total)
  • The topic ‘Change "Leave Reply" to an image’ is closed to new replies.