Insert any advert or code into WordPress. Perfect for all kinds of banners and ads including AdSense and Amazon. Powerful features, simple use.
ad-inserter.zipfrom your computer
ad-inserterdirectory to your computer
ad-inserterdirectory to the
Ad Inserter Pro Installation
If you are using free Ad Inserter simply uninstall it. The Pro version will automatically import existing settings from the free version. After you receive the email with download link for the Ad Inserter Pro plugin, download it, go to WordPress Plugins, Add New, Upload Plugin, Choose file, click on Install Now, activate it and then click "Enter License Key" and enter license key you got in the email.
ad-inserter-pro.zipfrom your computer
ad-inserter-prodirectory to your computer
ad-inserter-prodirectory to the
If you deactivate and delete Ad Inserter, the settings will stay in the database. To completely remove the plugin and settings do the following:
Few very important things you need to know in order to insert code and display some ad:
Few typical settings are described on the FAQ page. Please make sure you have also read WARNINGS on the bottom of this page and instructions for Debugging.
Each code block has a name and settings which are divided into sections. Some settings depend also on automatic insertion used. To rename code block click on the block name.
Check Simple editor to switch to simple editor for mobile devices. If you have PHP code (surrounded with PHP tags
) in code block, you need to check Process PHP to enable PHP processing.
When you are finished with settings you need to save them by clicking on the button Save Settings.
Each code block has 4 insertion options:
Normally for each code block you use only one insertion option. Of course, you can use all 4 options simultaneously taking into account that all insertion options use the same block settings (with some exceptions mentioned below).
To insert code block and display ad at some position you need to enable and use at least one insertion option.
Automatic Insertion Options:
For single posts or static pages insertion position Before Post usually means position above the post/page title, for blog pages Before Post position means position above all the posts on the blog page.
For single posts or static pages insertion position After Post means position below the post/page after all the content, for blog pages After Post position means position below all the posts on the blog page.
Please use Show positions function to see available positions for automatic insertion (Ad Inserter menu item in the WordPress toolbar on the top of every post/page).
Block Alignment and Style:
[ Preview ]
Ad Inserter has a very useful function that can help you to check if the ad code is working and to see how it will look like when it will be inserted. Click on the Preview button to open Preview window. WARNING: Some adblockers may block code on the Ad Inserter preview window. If you see warning PAGE BLOCKED or you don't see your code and the widow elements are distorted, make sure you have disabled ad blockers. On the top of the window there is visual CSS editor and four buttons and below there is CSS code of the wrapping div (which can be edited manually) and 'Block Alignment and Style' selection.
Below the settings there is a preview of the saved code between two dummy paragraphs. Here you can test various block alignments, visually edit margin and padding values of the wrapping div or write CSS code directly and watch live preview. Highlight button highlights background, wrapping div margin and code area, while Reset button restores all the values to those of the current block. You can resize the window (and refresh the page to reload ads) to check display with different screen widths. Once you are satisfied with alignment click on the Use button and the settings will be copied to the active block.
Please note that the code displayed here is the code that is saved for this block, while block name, alignment and style are taken from the current block settings (may not be saved). No Wrapping style inserts the code as it is so margin and padding can't be set. However, you can use own HTML code for the block.
Please note that Preview window uses also Header and Footer code.
Check screenshots for explanation on alignment.
Keep in mind that just installing a caching plugin does not necessarily make your site faster. Doing a bit of optimization will get you a lot of speed increase without caching plugins. To further combat slowness you may want to re-evaluate the performance of your hosting package. Maybe you've outgrown it. In that case, upgrade to a better hosting solution.
Caching on the frontend side (what visitors see) in some cases does speed up page loading but may also cause some unwanted behavior. When you are using caching and visitor visits some page, WordPress creates that page, Ad Inseter is called to do the job, the created page is sent to the visitor and it is also saved for quicker serving later. The next time the page is visited the visitor gets cached (saved) page. Because of this some Ad Inserter functions can not work because Ad Inserter is not called when the page is cached:
When you need the functions listed above you have to switch off caching (if possible only on selected pages where needed).
However, Ad Inserter also supports some of the functions above even when caching is enabled:
All you have to do is to set enable and use client-side functions (executed in the visitor's browser). But you have to be careful as some adverts might not work properly or can't be used this way and you might violate their Terms of Service.
PLEASE NOTE: If you are using W3 Total Cache for caching then you can still use server-side ad rotation, IP address and country detection even when the pages are cached as Ad Inserter supports special features of this caching plugin.
W3 Total Cache
If you are using W3 Total Cache for caching then you can still use server-side ad rotation, IP address and country detection even when the pages are cached as Ad Inserter supports special features of this caching plugin. To enable this mode go to Ad Inserter plugin settings tab * / tab General and set Dynamic blocks to Server-side with W3 Total Cache and configure W3 Total Cache for dynamic content.
When Dynamic blocks is set to Server-side with W3 Total Cache and you are using ad rotation, IP address or country detection, Ad Inserter inserts short PHP code with special tags in place of code block. When W3 Total Cache plugin loads cached page it executes this code before it serves the pages. So the page is stills served from the cache but the Ad Inserter blocks are dynamically created just before the page is served. Therefore, pages are served from the cache and the Ad Inserter code is still generated on the server-side.
Configure W3 Total Cache
How to fully set up W3 Total Cache is beyond the scope of this page. Check the W3 Total Cache manuals or contact it's developer for help with that if you need it.
You need to flush the cache after making these changes.
Please note also the following:
To use client-side rotation you have to enable it first. Go to Ad Inserter plugin settings tab * / tab General and set Dynamic blocks to Client-side.
Configure blocks normally and separate different versions with |rotate| tag. When the page will be created and Ad Inserter called, it will generate hidden code for all block versions. When the page will be loaded in the browser, one randomly chosen version of the code will be displayed. For example, to rotate 3 images:
<img style='height: 400px;' src="http://malsup.github.io/images/p1.jpg"> |rotate| <img style='height: 400px;' src="http://malsup.github.io/images/p2.jpg"> |rotate| <img style='height: 400px;' src="http://malsup.github.io/images/p3.jpg">
Please note the following:
<div style="height: 300px;"> ... </div>
WARNING: If you are using caching, the inserted code may not appear immediately on the page. Make sure you disable caching when you are testing or debugging. Some caching plugins like WP Super Cache and W3 Total Cache have an option to disable caching for known (logged in) users.
Ad Inserter has many debugging functions that can help you to diagnose the problem when you don't see your ads at expected positions.
Each post/page has a WordPress toolbar on the top. Ad Inserter menu (visible only to administrators and can be hidden) item has the following debugging functions:
WARNING: Make sure caching is disabled while debugging! All debugging functions you enable will be visible only to you!
When browsing other pages on the website debugging settings are temporarily saved (in a cookie). To disable all debugging functions click on the 'Ad Inserter' top menu item in the toolbar (or use
If you enable Remote debugging you can also allow other people using url parameters to see post/page with debugging data. Remote debugging option is located on the Ad Inserter Settings tab - Debugging tab below. Remote debugging enables other, non-logged in users by using url parameters to see Debugger widget and code insertion debugging (blocks, positions, tags, processing). Enable this option (and disable caching) to allow other people to see Debugger widget, labeled blocks and positions in order to help you to diagnose problems. For logged in administrators debugging via url is always enabled.
Please support the plugin if you like it:
Requires: 4.0 or higher
Compatible up to: 4.7.2
Last Updated: 2 days ago
Active Installs: 40,000+
37 of 38 support threads in the last two months have been marked resolved.
Got something to say? Need help?