Ever wondered how to automatically add your own signature to your blog posts? If you’re using a Genesis-powered theme on a self-hosted wordpress.org site, then here is a very easy tutorial for you.
First, the steps:
1. Design your signature image and save it. (I prefer to use a transparent background so a png file format works best)
2. Upload it to your media library.
3. Copy the url.
4. Paste it into the code below that says IMG URL HERE
5. Paste the entire code into your functions.php file (at the very end)
// Add Signature Image after single post add_action('genesis_entry_footer', 'custom_include_signature', 1); function custom_include_signature() { if(is_single()) { ?> <img src="IMAGE URL HERE" alt="Signature" /> <?php }}
If you’re using an earlier version of WordPress (before 3.6) or Genesis (before 2.0), use this code instead:
// Add Signature Image after single post add_action('genesis_after_post_content', 'custom_include_signature', 1); function custom_include_signature() { if(is_single()) { ?> <img src="IMAGE URL HERE" alt="Signature" /> <?php }}
Note that the signature will appear at the end of each single blog post. It will not be visible on archive pages, stand alone pages, or your blog page. If you want it to appear on your pages as well, there’s an even easier way. Just make sure you have the Genesis Simple Hooks plugin installed on your site.
1. Create your signature image.
2. Upload it to your media library.
3. Copy the URL.
4. Insert it into this code:
<img src=”IMG URL HERE”>
5. Copy the entire code
6. Open Genesis>Simple Hooks and look for the genesis_after_entry hook. Paste the code there and save changes.
That’s all! Show off your new signature by leaving a link in the comments. I’d love to see what you come up with!
Hi Patricia!
I was browsing Pinterest for a post on how to add signature to my blog posts and came across your post.
It’s amazing!!! It looks great!
Thanks a million for this. 🙂
Dani.
Here’s what it looks like:
http://www.danielapesconi-arthur.com/2015/02/the-writing-shed-has-changed/
You’re welcome! It looks great!
Thanks! 🙂
Thanks Ms. Patricia. This article is very helpful for me. I’m trying to figure out how to make an automatic signature for my blog posts and your article is the answer. 🙂
Glad you found it helpful! Show me a link to your site after you install your signature!
Thanks for this Patricia! Bookmarked this post. 🙂 Btw, I love your “Let’s Get Social” logo below. 🙂
Wow, this is great. Will this work on a free hosted .wordpress.com? Or Its only for .com?
Hi Karen! It’s only for self-hosted wordpress sites using Genesis framework themes.