Guide

Squarespace

Squarespace Integration

Add ads to your Squarespace site

âš ī¸ Business Plan Required

Custom code blocks and code injection require a Squarespace Business plan or higher.

1 Code Block (Recommended)

Add a code block directly to any page or section.

1

Open your page in the Squarespace Editor

2

Click Edit on a section, then Add Block

3

Select Code from the block menu

4

Set the mode to HTML and paste your code

5

Click Apply and save the page

<iframe src="https://example.com/ad-slot-id" style="width:100%;height:auto;min-height:90px;border:none;overflow:hidden;" frameborder="0" scrolling="no"></iframe>

2 Markdown Block (Alternative)

Use a Markdown block if Code blocks aren't available in your template.

1

Add a Markdown Block

2

Paste the iframe code directly (Markdown allows raw HTML)

<iframe src="https://example.com/ad-slot-id" style="width:100%;height:auto;min-height:90px;border:none;overflow:hidden;" frameborder="0" scrolling="no"></iframe>

3 Code Injection (Site-wide)

Add code that appears on every page of your site.

1

Go to Settings → Developer Tools → Code Injection

2

Paste the code in the Footer section

3

Click Save

<!-- Beaver.ad - Site-wide Ad -->
<div id="beaver-ad-footer" style="position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;padding:10px;background:rgba(255,255,255,0.95);border-top:1px solid #eee;z-index:9999;">
  <iframe src="https://example.com/ad-slot-id" style="width:100%;height:auto;min-height:90px;border:none;overflow:hidden;" frameborder="0" scrolling="no"></iframe>
  <button onclick="this.parentElement.remove()" style="position:absolute;top:5px;right:10px;background:none;border:none;font-size:18px;cursor:pointer;color:#999;">×</button>
</div>

💡 Tip: This creates a dismissible banner ad at the bottom of all pages. Users can close it by clicking the × button.

4 Blog Post Code Injection

Add code that appears on all blog posts.

1

Go to your Blog page settings

2

Find Blog Post Item Code Injection

3

Paste in the Post Blog Item Code Injection field

<!-- Beaver.ad - Blog Post Ad -->
<div class="beaver-ad-blog" style="margin:40px 0;text-align:center;">
  <p style="font-size:11px;color:#999;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;">Sponsored</p>
  <iframe src="https://example.com/ad-slot-id" style="width:100%;height:auto;min-height:90px;border:none;overflow:hidden;" frameborder="0" scrolling="no"></iframe>
</div>