Return to Snippet

Revision: 27400
at June 5, 2010 18:24 by gd6d

Initial Code
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;

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:


Initial URL

Initial Description

Initial Title
Create a handwritten signature with a WordPress shortcode

Initial Tags
image, wordpress

Initial Language