HalalAdzDevelopers বাংলা · EN Go to dashboard
Docs menu

Placing ads

Ads on WordPress and Blogger

WordPress

There is no HalalAdz WordPress plugin to install yet. If you pasted a [halaladz …] shortcode anywhere, remove it — it shows as plain text.

  1. Paste the ad code in a Custom HTML block: WordPress admin → Appearance → Widgets → "+" → "Custom HTML" → paste the script tag and, below it, the slot code of each ad you want → Update.
  2. The script tag is needed once per page; in more Custom HTML blocks paste only slot code. No Widgets menu (block theme)? Appearance → Editor → open the template → "+" → Custom HTML → Save.
  3. Add the ads.txt line with the Ads.txt Manager plugin: Plugins → Add New → search "Ads.txt Manager" → Install Now → Activate. Then Settings → Ads.txt → paste the line (keep any lines already there) → Save Changes. Using cPanel? Put the line in public_html/ads.txt.
  4. Check it works: open your site in a new tab; once the property is approved the ad box appears within a few seconds. After our check, the dashboard's ads.txt tab turns green.
HTML
<!-- once per page, inside <head> or before </body> -->
<script async src="https://cdn.halaladz.com/ad.js"></script>

<!-- where an ad should appear: your placement key from the dashboard -->
<ins data-hz-slot="pk_live_xxxxxxxx"></ins>
ads.txt
halaladz.com, pub-<your account id>, DIRECT

Blogger

  1. ads.txt: Blogger → Settings → Monetization → turn on "Enable custom ads.txt" → paste the line into Custom ads.txt (keep existing lines) → Save.
  2. ad.js once: Theme → ▾ → Edit HTML → find </head> and paste just before it → Save. Blogger themes are XML, so write async='async'.
  3. Place ads: Layout → Add a Gadget → "HTML/JavaScript" → paste the slot code. Or turn on auto ads.
Blogger theme
<script async='async' src='https://cdn.halaladz.com/ad.js'></script>