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.

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: 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.

/ / A d d s i g n a t u r e o r a d a f t e r p o s t c o n t e n t f u n c t i o n wp b _ a f t e r _ p o s t _ c o n t e n t ( $ c o n t e n t ) { i f ( i s _ s i n g l e ( ) ) { $ c o n t e n t . = ‘ Y o u r s i g n a t u r e o r a d c o d e g o e s h e r e ‘ ;$ c o n t e n t . = ‘ Y o u r s i g n a t u r e o r a d c o d e g o e s h e r e ‘ ; } r e t u r n $ c o n t e n t ; } a d d _ f i l t e r ( ” t h e _ c o n t e n t ” , ” c u s t om _ c o n t e n t _ a f t e r _ p o s t ” ) ;

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s