function sc_signature() {
return '<div id="signature"></div>';
}
add_shortcode('signature', 'sc_signature');
Last, define the style for the #signature id by adding the following code to your style.css:
#signature {
background:url(images/signature.jpg) no-repeat top left;
width:100px;
height:100px;
}
Note: You may have to edit the width and height to fit your image size.
Now, when you’ll want to insert your signature at the end of a post, simply switch WordPress editor to HTML mode and type the following:
[signature]