As you have probably seen, many themes have an Edit link visible on posts or pages when viewing them on the front end, provided you are logged in to the site with editing rights. When designing your own theme it is probably a good idea to implement this feature, especially for sites which will have alot of content. The simple reason is that it is much easier to find a page from the front end than from the back end, thus you will make life easier for the site administrators.
Use the following code in your template:
<?php edit_post_link(__('<span>{Quick Edit}</span>'), ''); ?>
I also like to put a style:
.admin-edit { color: green; }
Related posts:

Web professional in Malta, Europe. Focusing on building visually stunning websites that are easy to maintain, usually using WordPress as the CMS. Web developing since 1995, loving WordPress for more than 5 years.
Leave a Comment
Let us know your thoughts on this post but remember to place nicely folks!