Chapter 6. How-to Guides

Show a Message to Visitors Who Block Ads

For a visitor with an ad blocker, every slot would otherwise stay empty or close. With Adblock fallback, CLS Ad Slot shows content of your own in the space instead: a polite request to allow ads, a link to a subscription, or a promotion of your own. Because the content is placed in the space that was already kept, nothing moves.

  1. Go to Components → CLS Ad Slot → Setup → Configurations.

  2. Set Adblock fallback to Yes.

  3. Write your message in Fallback content, and save.

Caution

Keep the fallback content shorter than your smallest slot, especially on phones. Content taller than the reserved space makes the slot grow, and that is a layout shift. Avoid large images in it for the same reason, and because an image adds weight to the page.

Note

The same content is used for every slot, so write it to make sense in a sidebar, inside an article and between blog articles alike.