If you’re looking to maximize the potential of your WordPress blog, then we recommend using an after post widget.
After post widgets allow you to display different elements at the end of blog posts or pages. For instance, you can add a newsletter sign-up form, show related posts, display recent articles, or popular products.
We’ve been using the widget on WPBeginner for a long time, and it’s helped promote other articles on our site. For example, you can see popular content on our website.
In this article, we’ll show you how to easily add custom after post widgets in WordPress to keep users engaged and spend more time on your website.
Why Add Custom After Post Widgets in WordPress
You may have seen a call to action at the end of an article on many popular websites.
That’s because if a user has scrolled down to the end of an article, then they are already hooked and more likely to engage with your offer.
This space can be utilized to create an email sign-up form, a lead generation form, or boost user engagement with related posts, popular posts, and other content discovery features.
Similarly, if you run an online store, then you may want to show related products or promote a sale by offering a discount.
Now, there are different ways to do this. You could use plugins like the MonsterInsights popular posts addon, which lets you automatically add popular posts or popular products after your post content.
You can add that after-post content manually while writing your posts using the block editor.
This is a lot of work and the problem with this method is that if you wanted to change something, then you will have to manually do that.
That’s where widgets come in.
In web development terminology, widgets are non-content blocks that you can add to different areas of your website separate from the main content area.
WordPress comes with a set of built-in widgets that you can add to any widget-ready areas provided by your WordPress theme.
All popular WordPress themes come with common widget-ready areas like sidebars, footers, and header widget areas. However, very few WordPress themes include an after-post widget area.
That being said, let’s take a look at how you can easily add after-post widgets in WordPress regardless of which WordPress theme you are using.
Video Tutorial
If you’d prefer written instructions, just keep reading.
Method 1. Adding After Post Content using a Plugin
This method is a bit limited but easier and works with all types of WordPress widgets. It relies a little bit on your WordPress theme for styling but would work well for most users.
The first thing you need to do is install and activate the Add Widget After Content plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, go to the Appearance » Widgets page, and there you’ll notice a new widget block called After Content.
You go ahead and click the + sign to add any widget to After Content.
For instance, here, we have added a suggestion form widget we made using WPForms.
Feel free to edit each widget setting as you would normally do, and don’t forget to update your changes.
Once finished, you can visit your website to see your after-post content widgets in action. This is how it looked on our demo website.
Depending on how many widgets you are trying to add and your WordPress theme, your widgets may appear slightly off-balanced.
By default, the plugin adds widgets one after another, so if you want to show them side by side, then you’ll have to use custom CSS. You can also change the background color, add padding, change text color, and more.
Simply go to the Appearance » Customize page and switch to the Additional CSS tab.
You can start off by adding this custom CSS as a starting point:
.awac.widget {
width: 50%;
display: inline-block;
float: left;
padding: 20px;
background-color: #fff8e9;
border: 1px dashed #fde2a9;
min-height:400px;
}
.awac.widget h4 {
font-size:18px;
color:#666;
}
.awac.widget li{
font-size:16px;
}
In this custom CSS code, we changed the widget width to display two widgets side by side. We have also changed the background color and font sizes. Feel free to adjust the CSS to meet your requirements.
Don’t forget to click on the ‘Publish’ button to save your changes.
This is how it looked on our demo website.
Don’t want to use custom CSS? Try the CSS Hero plugin. It lets you customize all areas of your site without any CSS knowledge.
Show or Hide After Post Widgets
By default, the plugin will show your after post widgets on all posts and pages. It also allows you to hide it in places where you don’t want to show after content widgets.
For instance, you may not want to display after post widgets on static pages.
Simply go to the Appearance » Widget After Content page. From here, you can choose which categories or post types will not display your after-content widget.
Don’t forget to click on the ‘Save Changes’ button to store your settings.
You can also hide the after content widget area for individual posts and pages.
Simply edit the post of the page where you don’t want to show after post widgets and scroll down to the ‘Widget After Content’ box at the bottom.
Next, check the box to hide the widget area and then save your post or page. The plugin will now stop showing the widget area for that particular post/page.
Method 2. Adding After Post Content Using OptinMonster
This method is prettier and more powerful, but it does not use default WordPress widgets. Instead, it allows you to add any content you want with beautiful designs and templates to choose from.
Another advantage of this method is that it gives you a ton of targeting options.
For instance, you can show personalized content to different users, change content based on what users are currently viewing, or use on-site retargeting for more impact.
For this method, you’ll need OptinMonster. It is the best lead generation and conversion optimization software on the market and allows you to convert website visitors into subscribers and customers.
First, you need to sign up for an OptinMonster account. Simply visit the website and click the ‘Get OptinMonster Now’ button.
After signing up, switch to your WordPress website to install and activate the OptinMonster plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.
This plugin acts as a connector between your WordPress website and your OptinMonster account.
Upon activation, you need to visit the OptinMonster » Settings page and click on the ‘Connect existing account’ button.
This will bring up a popup where you can log in and connect your WordPress site to your OptinMonster account.
Now that your WordPress site is connected, you are ready to create your first geotargeted campaign. Go to the OptinMonster » Campaigns page and click on the ‘Add New’ button.
First, you’ll need to choose your campaign type. OptinMonster supports lightbox popups, floating bars, inline optins, fullscreen, slide-in, and gamified campaigns.
For the sake of this tutorial, we’ll choose an inline campaign that allows us to automatically display our campaign after content.
Below that, you can select a campaign template by clicking on it.
Next, you need to enter a name for your campaign. You can enter any name here and then click on the ‘Start building’ button.
This will launch OptinMonster’s campaign builder interface with a live preview of your campaign in the right panel.
You can simply use the drag-and-drop campaign builder to add blocks and move things around.
From here, you can choose more powerful elements not available in the default WordPress widgets. For instance, you can add countdown timers, buttons, chatbots, and columns.
Once you have designed your after post campaign, switch to the Publish tab and change the campaign status to ‘Publish’.
After that, click on the Save button to store your settings and close the campaign builder.
OptinMonster will now take you to the Output settings page. From here, you can choose where you want to display your after post content.
Simply select Automatic, and then you can choose to show your campaign inside, below, or before the post content.
For the sake of this tutorial, we’ll choose below the post content option. After that, change the Visibility status to Published and click on the Save button to make your campaign live.
You can now visit your website to see your custom after post widget in action.
We hope this article helped you learn how to add custom after post widgets in WordPress.
Want to see how users are interacting with your after post widgets? See our tutorial on how to track user engagement in WordPress and then try these tips to easily boost your website traffic.
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.
Jiří Vaněk
This method is really great and helped me promote my Patreon. I took advantage of Optin Monster and placed a banner at the end of the article that encourages users to take action and join my Patreon. I didn’t have high expectations, but this campaign is working really well. So, these after-post widgets have significant potential and marketing power.
Laura Baareman
Hello!
I installed the Add Widget After Content plugin and It doesn’t appear in the Widget area of my Website backend. Any ideas on what to do?
WPBeginner Support
You would want to check with the support for the plugin and they should be able to take a look and assist.
Admin
Anil
Is there also a way to get widgets before post content after the title without it being arbitrary??
Mohit Chauhan
Thanks wpbeginner for this wonderful pick
WPBeginner Staff
Yes you can use plugins like widget logic and conditional widgets.
WPBeginner Staff
Thanks for writing and sharing this useful plugin with the community.
WPBeginner Staff
Yes, the plugin allows you to add custom after post widgets, hence the title.
Patty Jones
Our site has multiple authors. Can you customize the widget for each post as apposed to just disabling it?
Afromaster Hervé
is that title right ?
Arelthia Phillips
Thanks for featuring my plugin. I am glad that people find it useful.
Holger Govertz
I haven’t seen this plugin before, it fullfill the separation of style and function rule.
Maybe I should start adding widget areas this way, and not building child themes just for a widget area or two.