Icon for Edit button
-
Hi I’m trying to set up my comment and edit buttons on posts to have an image next to them…
this works:
<?php edit_post_link('Edit »'); ?><img src="<?php echo bloginfo( 'template_directory' ) . '/images/edit.png'; ?>" width ="16" height="16" class="icon-edit">
But my problem is when the post creator isn’t logged in you can still see the edit image but not the edit text…
Can anyone explain to me the correct way of linking the edit icon to the “edit_post_link” code so that it disappears when not in use also??
thanks
thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Icon for Edit button’ is closed to new replies.