How to Add a Signature to WordPress Content

WordPress

If you are looking to give your blog a personal touch, a signature is a great way to do it. Signatures can be placed at the bottom of blog posts, landing pages, promotional articles, or pretty much any other type of content, and are much more appealing than the traditional method of printing a name.

While you can insert a signature at the bottom of each post after it is written, it is much better to have WordPress take care of it automatically. As always, this can be done two ways: manually or with a plugin, and, as always, the latter is the simplest method for anyone put off by the thought of editing code.

Adding a WordPress Signature Manually

If you are not a fan of third-party applications, adding a signature manually will provide a more permanent and reliable solution. To do this you will need to log in to your hosting control panel and find the “functions.php” file located in wp-content/themes/yourtheme.

Download this file and right-click to open it in text editor on your desktop. In a text editor, insert the following code:

add_filter('the_content','add_signature');

function add_signature($text) {

global $post;

if($post->post_type == 'post') $text .= '<div>

<img src="http:/yoursite.com/wp-content/themes/yourtheme/images/signature.png" alt="signature" />

</div>';

return $text;

 

(Thanks to wpmu.org for the code)

You will need to change the image URL with the correct location for your signature image. Alternatively, you can use text instead of an image, which would look like this:

add_filter('the_content','add_signature');

function add_signature($text) {

global $post;

if($post->post_type == 'post') $text .= '<div>

David

</div>';

return $text;

Upload your file via FTP, and your signature will automatically feature in your posts.

Adding a WordPress Signature via a Plugin

Plugins are great. We feature them regularly in our guides and they are wonderfully easy to use. Several plugins will provide the automatic signature feature we are looking for. Here as some recommended choices:

  • FT Signature Manager
  • WP Post Signature
  • Add Signature Plugin for WordPress

The same installation process applies to each plugin.

Log in to your WordPress Dashboard (www.yourwebsite.com/wp-admin), go to Plugins > Add New and type the name of the plugin into the search box. When the results are shown, find the plugin and click on “Install Now” – WordPress will then install the plugin. With the plugin installed, click on “Activate.”

When activated, each plugin will differ in terms of settings, to find out how to add a signature for your chosen plugin, go to Plugins > Installed Plugins and select the “Settings” option. If it does not have this option, click on the blue link for “visit plugin website” in the description.

For the plugins featured here, editing a signature can be done, either by clicking on the plugin link in “Settings” or in Users > Your Profile. All plugins will allow you to enter your text signature or use HTML code to add an image.

Share it!Share on FacebookTweet about this on TwitterShare on Google+Email this to someone

Our Recommended Wordpress Web Hosting Provider

WordPress

WHC.CA
Get a 50% Discount by using our link.

WHC.ca

Reliable host, with excellent customer service and an easy one-click Wordpress installation. Our recommendation to host a Wordpress blog.

Leave a Reply

Your email address will not be published. Required fields are marked *