Can I customize where ads appear?

You have complete control — ads only appear where you place a slot div. No automatic injection. Use CMS conditional logic to show ads on specific page types and exclude pages you want ad-free.

Yes — you have full control over where ads appear on your pages. Advlume never places ads automatically. Every ad placement requires an explicit slot div that you add to your HTML.

How ad placement works

Ads only appear in locations where you have explicitly placed a <div data-advlume-slot> element. The wrapper does not scan the page for suitable positions or inject ads anywhere automatically (unlike some older ad platforms and AdSense's auto ads mode).

This means:

  • Ads appear exactly where you place the div.
  • If you remove a div, the ad disappears from that position.
  • You can add or remove placements at any time by editing your HTML.
  • Different pages can have different ad configurations — add a mid-article unit to blog posts but not to your homepage, for example.

Per-page and conditional placement

Use your CMS's template or conditional logic to show ad slots only on certain page types:

<!-- WordPress: show a mid-content ad only on single posts -->
<?php if (is_single()): ?>
<div
  data-advlume-site="YOUR-SITE-UUID"
  data-advlume-slot="mid-content"
></div>
<?php endif; ?>

Excluding specific pages

To prevent ads from appearing on specific pages (e.g. your contact page, your terms of service, your checkout), simply do not add slot divs to those page templates. The Advlume script can load on all pages without consequence — it will not serve ads if no slot divs are present.

Managing ad units in the dashboard

Ad unit names (slot keys) are created and managed in the dashboard under Website → [site name] → Ad Units. Each ad unit has a configured size set and a slot key. To add a new placement, create the ad unit in the dashboard first, then add the corresponding div to your HTML.

Further reading

Last updated 2 months ago