In this post, we are going to talk about how we can insert a piece of code (or text) literally anywhere inside a blog post in WordPress blog.
This code or text can be anything from Google Adsense to any other Ad Code, Banner or any piece of Text you want to add to every ( or a set particular blog posts). Let’s see how.
How to Insert Ads anywhere inside a blog post
We are obviously going to use a WordPress plugin for this, and I don’t need to say how much I came to love this plugin as it saved me so much time and has even earned me money.
So a few days Ago, I wrote a detailed post about QUADS, which is also a similar plugin and lets you add Ads to your posts.You can read about it here.
Like, you can put ads below above a blog post, after an image in a blog post, after 1,2,3….n paragraphs.
It also lets you hide the ads (if you have put them using the plugin) Which makes the life of so many bloggers easy, because sometimes you have blog posts where you don’t want to show ads, and then there are blog posts where Google Adsense doesn’t want you to put ads.
Anyway, QUADS will work for the majority of publishers out there. But if you want more control over displaying ads in your blog post, you are going to need Ad Inserter.
How to Insert Ads Literally anywhere inside a blog post
So, Ad Inserter is a Free plugin that can be installed directly by searching for it from the Plugins section of your WordPress blog’s dashboard.
Even though they have a pro version which lets you create more ad blocks, the Free version gives you 16 ad blogs, which, I think, is more than anyone is going to need. 🙂
So, what this plugin offers other than QUADS?
Ad Inserter offers everything QUADS offers, and apart from that, here are few extra thing it offers.
- You can show the block after a particular tag or a paragraph that contains a particular word.
- You can show the block depending on what device the visitor is browsing your site on.
- You can show the block if the post has x number of words in it.
- You can show a block after x number of days of publishing the post.
- You can hide ads for a particular category or tag or URL or be referring site.
These are so many options you might not even need it right now, but you may find them useful. Like I did.
Show the block after a particular tag or a paragraph that contains a particular word.
One of the Ad Network I am using on my Food Blog asked me to put the ads below a particular element (a table of ingredients) in every post.
Now since that element is not fixed and appears after 2 or 3 or sometimes 4 paragraphs, it is not possible to put use QUADS plugin and put the ad block after 3 or 4 paragraph, because it won’t always appear below the particular element.
But with Ad Inserter, I can select where it should appear,
I choose the block to display
- before a paragraph
- on all posts
- count from the top – paragraph with tags: p
- count only paragraph that contains: Method with at least 1 word.
Now it appears exactly where it is supposed to. That is, below the Ingredients table.
In my posts, Method appears after Ingredients table, so I am asking the block to appear before Method, that is below the Ingredients table. And it appears there in all the posts.
If the post does not have the word Method in it, the ad won’t appear.
So, this is a life saver for me. And this is just one example to use this plugin. You can do whatever you want.
Show the block depending on what device the visitor is browsing your site on.
This option is useful when you decide to show something for Desktop users and a different think for Mobile users.
All you have to do is, create two blocks, and select the options. One for Mobile and other for Desktop. And let it run. You can use this plugin if you don’t want to play with codes to force Google Ads to resize according to the device screen size.
Show the block if the post has x number of words in it.
Since Google Adsense now allows you to insert more than 3 Ads on a page. This option has now become more useful.
You can create a block for 4th or 5th Google Ad and select this option to let it only run if the blog post it lengthy enough to comply with Google’s new ad policy of keeping Ads less than the content.
Hide ads for a particular category or tag or URL or referring site
With this option, hide ads for visitors coming from a particular site, like Facebook or Twitter. Also, if you create content that does not comply with Google’s policy, you can create a Category for it or simply Tag (Something like ‘No Ads’ ‘Adult’ ‘Non-Ads’ etc) those posts where you don’t want to show ads and then select to hide it.
WordPress Plugin Download Ad Inserter
Get more stuff like this
in your inbox
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Thank you for subscribing.
Something went wrong.