How to Add Signature After Post Content in WordPress Manually and Using Plugin

You may have come across a blog consisting the blogger’s “signature” at the bottom of the post. Did you ever wonder how this has been added? Well, WordPress doesn’t have such feature by default and if you want to add signature after your blog post content in WordPress, then you need to do it manually by tweaking your theme function.php file. Otherwise, you can also install a WordPress plugin to add this functionality.

That being said, today, in this article we will show you how to easily add signature ads after post content in WordPress.

NOTE: Before we proceed to the next steps, we should remind you that this tutorial will add a signature to ALL your posts, old and new. If you already have a signature in your old posts, your posts will show two signatures, so beware, this may force you to go back and remove all those old signatures.

Method 1: Using Plugin

This is the easiest way to display ads after post content. All you need to do is install and activate the Insert Post Ads plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Post Adverts » Settings page to configure plugin settings.

On the settings page, you need to select where you want to enable post ads. You can enable it for posts, pages, and custom post types.

Don’t forget to click on the save settings button to store your changes.

Next, you need to go to Post Adverts » Add New to create your signature or advertisement.

Simply provide a title for this particular signature or after post ad. In the box below, paste your ad code, signature, or any HTML or text you want to display.

Next, you need to select ‘After content’ next to ‘Display the advert’ option. You also need to enter 1 in the field next to it.

Don’t forget to click on the publish button to make your ad available on your website.

That’s all, your after post ad or signature is now live on your website. You can visit a post or page on your site to see it in action.

Method 2: Add Signature Ads Manually

You can also display ads after post content manually. For this method, you need to add below codes to your WordPress file.

First, you need to add this code to your theme’s functions.php file and save. But, before we want you to keep a copy of your functions.php file separately, which will be useful if something goes wrong.

// Add signature or ad after post content

function wpb_after_post_content($content){

if (is_single()) {

$content .= 'Write your signature or ad code here';

}

return $content;

}

add_filter( "the_content", "wpb_after_post_content" );

NOTE: Don’t forget to replace the value of $content with your ad code, image, or signature you want to display.

Now, go back to your website, you will see your signature ad in action.

We hope this article helped you add signature and ads after post content in WordPress. You may also want to see our guide on how to easily resize the text font in WordPress.

If you find this article relevant, then please share it in your social media channels.

SEE ALSO: Best User Generated Content WordPress Plugins

LEAVE A REPLY

Please enter your comment!
Please enter your name here