How To Add Signature To Posts Without A Plugin?
-
I found a hack that sort of worked:
I added this to my functions.php file:
add_filter('the_content','add_signature'); function add_signature($text) { global $post; if($post->post_type == 'post') $text .= '<div class="signature"> <img src="http:/yoursite.com/wp-content/themes/yourtheme/images/signature.png" alt="signature" /> </div>'; return $text; }
But instead of my signature being directly under the content, it was below both my linkwithin & sociable plugin stuff and above the tags/category meta info. How do I code it so that it goes directly at the end of my posts and above all the other stuff?
- The topic ‘How To Add Signature To Posts Without A Plugin?’ is closed to new replies.