WordPress.org

Ready to get started?Download WordPress

Forums

Image in edit Post Link (2 posts)

  1. runspect
    Member
    Posted 4 years ago #

    I want to put a image just before the edit post link. My problem is that i don't know to get the image with a php function inside.

    The (bad) code is:

    <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <img src="<?php bloginfo('template_url'); ?>/images/icon_edit.gif" alt="" style="vertical-align: middle"><span class="edit-link">', '</span>' ); ?>

    Any help?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Get rid of the image markup and add the image to the link using CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.