Guide
Wix
Wix Integration
Add ads to your Wix website
1 HTML Embed Element (Recommended)
The easiest way to add ads using Wix's built-in HTML embed feature.
Open your site in the Wix Editor
Click Add Elements (+) in the left panel
Go to Embed Code â Embed HTML
Click Enter Code and paste the embed code
Resize and position the element as needed
<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 Using Velo (Advanced)
For developers who want to dynamically load the ad using Wix's Velo platform.
Add an HTML embed element and give it an ID (e.g., #adContainer)
Enable Dev Mode in your Wix Editor
Add the following code to your page:
$w.onReady(function () {
$w("#adContainer").postMessage(`<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>`);
});
// In the HTML element's code:
window.onmessage = (event) => {
if (event.data) {
document.body.innerHTML = event.data;
}
}; đĄ Tip: For most use cases, the simple HTML embed method is sufficient. Use Velo only if you need dynamic control.
3 Blog or Article Pages
Add ads to your Wix Blog posts or article layouts.
Go to Blog â Design Post
Select the Post Page layout
Add an HTML embed element below or beside the post content
Paste the embed code
<!-- Beaver.ad - Sponsored Content -->
<div style="text-align:center;margin:20px 0;">
<p style="font-size:11px;color:#999;margin-bottom:8px;">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> â ī¸ Common Issues & Solutions
Ad not showing?
Make sure the HTML embed element is large enough. Resize it to match your ad dimensions.
Scrollbars appearing?
Ensure the scrolling="no" attribute is present and the container is properly sized.
Mobile responsiveness issues?
Use the dynamic sizing option with width:100% for responsive behavior.