jump to navigation

Adding an image-signature to Your WordPress Posts July 13, 2011

Posted by Tournas Dimitrios in Wordpress - 3.

A signature is a bit of personalized text (such as your contact information or a favorite quote) that is automatically inserted at the bottom of every message you send . Nowadays it is a common for most people to add a  signature to the end of  emails . Adding an image – signature to your WordPress posts is a handy way to give your blog a more personal feel .

First an image-signature  is created , and this image will be embedded into each blog post by the help of a filter . Filters are the hooks that WordPress launches to modify text of various types
before adding it to the database or sending it to the browser screen .

See the result  on the picture below :

Add.Image.Signature.on.WordPressAdd the following  code in your theme’s function.php file :
Dashboard -> Appearance -> editor -> select Your theme from drop-down box -> locate function.php from left sidebar  -> append code at the end of the file and store file with ” Update file .

// Add an image signature to posts

function my_imagesignature($text) {
global $post;
if($post->post_type == 'post') $text .= '<img src="http://signatures.mylivesignature.com/54859/227/C22201820EB881174CA.png" alt="signature" />';
return $text;

You could of course apply CSS rules to style the position of the image .

The are many free online image-signature sites where you can customize the look and feel of your signature . Many of these site host the created graphic and provides a link to embed into your HTML code . I have used this site for my example in this article .

Where To Look For Filters :



No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s