Skip to content

Move CrawlProof ad out of layout body into page content#492

Merged
ralyodio merged 1 commit into
masterfrom
fix/crawlproof-ad-placement
Jul 8, 2026
Merged

Move CrawlProof ad out of layout body into page content#492
ralyodio merged 1 commit into
masterfrom
fix/crawlproof-ad-placement

Conversation

@ralyodio

@ralyodio ralyodio commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Problem

The "Add CrawlProof ad unit" bot (#491) injected a bare <div data-cp-ad> at the tail of <body> in app/layout.tsx, so the 300x250 ad rendered below the footer on every page (visible at https://ugig.net/).

Fix

  • New src/components/AdUnit.tsx — renders the data-cp-ad slot centered with an "Advertisement" label.
  • Removed the stray div from layout.tsx; the ad.js loader stays global.
  • Placed <AdUnit /> inside real page content on the home, gigs list, for-hire list, blog index, gig/for-hire detail (sidebar), and blog post views.

Same pattern previously applied to saasrow, threatcrush, and bl0ggers.

🤖 Generated with Claude Code

The "Add CrawlProof ad unit" bot (#491) injected a bare
<div data-cp-ad> at the tail of <body> in app/layout.tsx, so the
300x250 ad rendered below the footer on every page.

Replace it with an <AdUnit /> component placed inside real page
content on the home, gigs, for-hire, and blog list + detail views.
The ad.js loader stays global in the layout.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 5946231 into master Jul 8, 2026
5 checks passed
@ralyodio
ralyodio deleted the fix/crawlproof-ad-placement branch July 8, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant