Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add Signature or Ads after Post Content in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to add a signature or ad after your blog post content in WordPress?

By default, WordPress does not come with an easy way to display advertisements or a personal signature after the content of each post.

In this article, we will show you how to add a signature or ads after post content in WordPress.

How to Add Signature or Ads after Post Content in WordPress

Why Add Signature or Ads After Post Content in WordPress?

When you first create a WordPress website, there is no way to automatically add content to the end of each post. That makes it hard to add a signature or display advertisements after your blog posts. Luckily, there are a few ways you can add this feature to WordPress.

When adding a signature, you can use an image of your actual signature, your name formatted in a handwriting font, or simply a friendly closing greeting with your name.

If you have multiple authors, then you won’t want the same signature shown on each post. Instead, you should follow our guide on how to add an author info box in WordPress posts.

Also, this tutorial lets you display ads after every post on your website. To display ads only on some of your posts, see our guide on how to display ad blocks in specific posts in WordPress.

With that being said, let’s take a look at how to add a signature or ads after post content in WordPress. We’ll cover two methods, and the first is recommended for most users:

Method 1: Adding Signature or Ads After Post Content With a Plugin

The first thing you need to do is install and activate the Ad Inserter – Ad Manager & AdSense Ads plugin. For more details, see our step by step guide on how to install a WordPress plugin.

This plugin supports Google Adsense, Amazon Ads, and other ad platforms. However, it is not limited to displaying ads. You can use it to add any code, images, or text to your posts.

Upon activation, you need to visit the Settings » Ad Inserter page to configure plugin settings. At the top of the page, you will see tabs where you can add multiple ads or signatures to your site. For this tutorial, we’ll stay on tab 1.

Enter Your Ad Code or Signature in the Plugin's Text Editor

Below the tabs, you’ll find a text editor where you can enter the content you wish to display. If you are displaying an ad, then you should paste the code you received from your advertising service, such as Google Adsense.

If you are adding a signature, then you can simply type a text signature, such as “Thanks for reading, Johnny”. Alternatively, you could enter the code to include an image of your actual signature, such as <img src="link-to-image">.

Next, you need to scroll down below the text editor and select where you want to display the ad or signature. The ‘Posts’ box is checked by default, and there are also options for static pages, the homepage, search pages, category pages, and tag archive pages.

Select Where to Display the Ad or Signature

Next, you can choose the insertion point from the drop down menu. To display the ad or signature after every post, you should select ‘After content’.

You can also choose which paragraph to display the ad after. For example, if you choose ‘After paragraph’ and enter ‘2’ in the next field, then the ad will be displayed a little after the fold.

When you’ve finished, make sure you click the ‘Save Settings 1 – 16’ button. This will store the settings for the ads in the first 16 tabs.

Now you can visit your website and view a post to see the ad or signature. Here is how it looks on our demo website.

Preview of Signature Added After Blog Post Content

Method 2: Adding Signature or Ads After Post Content Using Code

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 pasting code snippets 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 ‘Your signature or ad code goes here’ on line 5 with the ad code, image, or signature you want to display. Make sure you place it between single quote marks.

You can now visit your website to see your signature or ad in action.

We hope this tutorial helped you learn how to add a signature or ad after the post content in WordPress. You may also want to learn how to create a free business email address, or check out our list of must have plugins to grow your site.

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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

23 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Kelly says

    I added this code to my site specific plugin and it isn’t showing up in my posts. Do I add the text content I want to appear in place of every $comment?

    • WPBeginner Support says

      You would want to ensure you are closing the content in single quotes and after the = in line 5 of the code method.

      Admin

  3. Melissa Hoyle says

    I am trying to use this to add a signature to my posts. I uploaded my image to my media library then grabbed the image source code and pasted that into the box “Advert Code”. However, just the code displays on my posts and no image. How do I correctly generate a code so that my image displays? Thanks!

  4. joseph Tersoo says

    Thanks for the post It worked for me, how ever how can i add a title to it? i am using the second method on my site to display ads, i want to add a title to it like, “others are reading this” how can i achieve this?

    • WPBeginner Support says

      You would need to add the html for what you are using on your theme for titles in terms of h tags to add a title using that manual method.

      Admin

  5. Clive says

    Hi,
    Thanks that is really interesting but it does just add the text to the screen output, can that signature be automatically added to the contents that is written to the table.

  6. Molly says

    I’m using code snippet and inserting the signature code into the snippet editor but when I add the image url into the content – it just shows as a link written out into text. How do I add image link into content block so it shows as an image?

  7. Catherine Kelleher says

    Hello, trying to get this to work on images i have uploaded to us as ads?? can anyone help please

  8. abu bakar says

    i have this website link is
    i want to stop the ajax loading but i dont know how to do that can any one help me with that
    i really appreciate it..
    Thnakx

  9. Barry says

    Question: Insert Post Ads, according to the WordPress plugin page says it hasn’t been updated in two years and is only compatible up to WordPress 4.3.8.– so will you be updating it so can be used?

  10. Rezza Indra says

    Hy WPBeginner thanks for sharing, I like this website that’s a help me for building blog with WordPress CMS. I want to ask for tutorial make menu accordion as above (BEGINNER’S GUIDE FOR WORDPRESS / Start your WordPress Blog in minutes)

    please tell how to make, thanks guys

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WPBeginner Assistant
How can I help you?

By chatting, you consent to this chat being stored according to our privacy policy and your email will be added to receive weekly WordPress tutorials from WPBeginner.