A Beginner’s Guide to Insert Only One Ads Before HTML Element with Ad Inserter – WordPress Tutorial

By | September 14, 2019

Ad Inserter is one of popular wordpress ads management plugins, it can allow us to insert ads in our wordpress posts easily. In this tutorial, we will introduce how to insert only ads before a html element with max insertion number limited.


You post contains 5 blocks with class EnlighterJSRAW, you only want to insert one ads in the first block, how to do?

Open ad inserter settings

ad inserter settings

Enable output buffering

ad inserter enable output buffering

Select insertion

You should select Before HTML element

Insert class name in html element input area: .EnlighterJSRAW

Select Server-side mode.

ad inserter insert ads before html element

Set max insertion number and enable it.

Save all settings.

Then you will find ad inserter only insert one ads before first block.

Leave a Reply

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