How to Add Signature or Ads after Post Content in WordPress

Do you want to add a signature or advertisement after your blog post content in WordPress? By default, WordPress does not come with an easy way to display signature or ads after post content. In this article, we will show you how to easily add signature ads after post content in WordPress.

Method 1: Display Ads After Post Content Using Plugin

First thing 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.

imply 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: Manually Add Signature Ads After Post Content

This method requires you to add code to your WordPress files. If you haven’t done this before, then please take a look at our beginner’s guide onΒ adding code in WordPress.

First you need to add this code to your theme’sΒ functions.phpΒ file or aΒ site-specific plugin.

// Add signature or ad after post content
function wpb_after_post_content($content){
if (is_single()) {Β 
Β  Β  $content .= ‘Your signature or ad code goes here’;
}
Β  Β  return $content;
}
add_filter( “the_content”, “wpb_after_post_content” );

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

You can now visit your website to 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Β the best ad management plugins and solutions for WordPress.

If you liked this article, then please subscribe to ourΒ YouTube ChannelΒ for WordPress video tutorials. You can also find us onΒ TwitterΒ andΒ Facebook.

Leave a Reply

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

error: Content is protected !!

Pin It on Pinterest

Add address