Setup & site building · Guide
How to Remove Ads From Your WordPress Website (Step by Step)

Short answer
Start by finding the source of the ads. WordPress.com free plan ads need a paid plan, ads you added need their plugin, widget or AdSense setting turned off, and unexpected spam ads usually mean malware or browser adware that needs cleaning.
Key takeaways
- Identify the ad source before trying any fix.
- WordPress.com free sites show ads until you upgrade.
- Turn off AdSense Auto ads in your AdSense account.
- Check widgets, theme options and header code plugins.
- Spam pop-ups and redirects usually mean malware.
How do you remove ads from your WordPress website?
First find where the ads come from: WordPress.com free plan ads need a paid plan, ads you added need their plugin, widget or code removed, and unexpected spam ads usually mean malware or adware.
That first step matters because the fix is different for each source. Removing a plugin will not stop WordPress.com ads, and upgrading a plan will not stop ads injected by malware.
This guide walks through every common source, from the simplest to the most serious. Work through them in order until the ads are gone.
Clear your caches after each change. Old cached pages can keep showing ads you have already removed, so our guide on how to clear cache in WordPress is worth keeping open.
How do you find where the ads are coming from?
Look at where the ads appear, whether they show when you are logged out, whether they show on other devices, and what the ad code or label says, which usually points straight to the source.
| What you see | Likely source | Fix |
|---|---|---|
| Ads on a site with a wordpress.com address | WordPress.com free plan | Upgrade to a paid plan |
| Google ads you did not place manually | AdSense Auto ads | Turn off Auto ads in AdSense |
| Ads in a sidebar or footer | Widget or ad plugin | Remove the widget or plugin ad |
| Ads in one theme area only | Theme ad settings | Turn off in theme options |
| Pop-ups or redirects to spam sites | Malware | Scan and clean the site |
| Ads only on your computer | Browser adware | Clean your browser |
Test on another device or network too. If the ads only appear on your own computer, the problem is your browser, not your site.
How do you remove WordPress.com ads?
To remove WordPress.com ads, upgrade your site from the free plan to any paid plan, because WordPress.com places ads on free sites and only removes them on paid plans.
- Log in to WordPress.com.
- Go to Upgrades > Plans for your site.
- Choose a paid plan and complete checkout.
- Visit your site logged out to confirm the ads are gone.
These ads are placed by WordPress.com, not by you, and you do not earn from them. Compare current plans on the WordPress.com pricing page.
If you are unsure whether a paid plan makes sense, read is WordPress.com worth it. You can also move to self-hosted WordPress, which never adds ads of its own.
How do you remove ads added by a plugin?
To remove plugin ads, go to Plugins > Installed Plugins, find your ad plugin, delete or disable the ad units in its settings, or deactivate the plugin entirely.
Common ad plugins include Advanced Ads, Ad Inserter and similar tools. Each one stores ad units and placement rules in its own menu.
- Look for an Ads or plugin-named menu in the dashboard.
- Open the list of ads or placements.
- Disable or delete the ads you no longer want.
- If you want no ads at all, deactivate and delete the plugin.
Some plugins add their own promotional banners in the dashboard. Those are only visible to admins and are not shown to visitors.
If you originally followed a guide like how to add ads to WordPress, reverse each step you took.
How do you turn off Google AdSense Auto ads?
Turn off Auto ads in your AdSense account under Ads, by site, then remove the AdSense code from your WordPress site if you want no Google ads at all.
Auto ads let Google decide where ads go. That is why ads can appear in places you never chose.
- Sign in to AdSense.
- Open Ads and select By site.
- Edit your site and switch off Auto ads.
- Apply the change.
Changes can take some time to show. The AdSense Help Center explains current menu names and timing.
If you added AdSense with Site Kit by Google, you can also stop the code from being placed in the Site Kit AdSense settings.
To remove AdSense fully, also delete the ads.txt entry. Our guide on the ads.txt file in WordPress shows where it lives.
How do you remove ads from widgets and theme code?
Check Appearance > Widgets for ad blocks or custom HTML, check your theme options for ad settings, and check header and footer code plugins for ad scripts.
Ads often hide in these places:
- Widgets: Custom HTML or image widgets in sidebars and footers.
- Theme options: Some news and magazine themes have built-in ad slots.
- Header and footer code: Plugins like WPCode store scripts added site-wide.
- Block templates: In block themes, ad code may sit in a Custom HTML block in a template part.
- Customizer: Some themes put ad code under Appearance > Customize.
Remove the code, save, clear caches and test again while logged out.
How do you remove Jetpack ads?
If ads come from Jetpack, go to Jetpack > Settings, open the Monetize or earning area, and turn off the ads feature, or disable the module entirely.
Jetpack ads are an opt-in feature, so you or a previous admin switched them on at some point.
Our guide to Jetpack modules lists what each module does.
To switch a module off, follow how to disable Jetpack modules shows the steps.
How do you remove spam ads caused by malware?
Spam pop-ups, redirects or ads for unrelated products usually mean your site is infected, so scan it, remove the malicious code, update everything, change passwords and request a review if Google flagged it.
- Scan your site from the outside with a scanner like Sucuri SiteCheck.
- Install a security plugin and run a full file scan.
- Look for unknown plugins, admin users and recently changed files.
- Restore a clean backup from before the infection if you have one.
- Update WordPress core, themes and plugins.
- Change all passwords, including hosting, FTP and database.
- Ask your host for help if the infection returns.
The official guide to hardening WordPress covers how to prevent it happening again.
If visitors are being sent to other sites, see how to fix a site redirecting to another site.
Nulled or pirated themes and plugins are a very common cause of injected ads. Replace them with genuine copies from the original developer.
How do you remove ads that only you can see?
If ads appear only on your own device, your browser or computer has adware, so remove unknown browser extensions, reset the browser and run a malware scan on the device.
Test your site in a private window, on your phone using mobile data, or ask a friend to check. If the ads are not there, your site is clean.
Then review your browser extensions. Remove anything you do not recognise, especially coupon, search or video download tools.
A free hosting plan can also inject ads into every page. If your host does this, the only fix is to move to a paid host.
How do you check the ads are gone for good?
Clear every cache layer, test the site logged out on several devices, check the page source for ad scripts, and watch the site for a few days to confirm nothing returns.
- Purge your caching plugin, host cache and CDN cache.
- Open the site in a private window.
- Press Ctrl+U or Cmd+Option+U to view source and search for ad-related scripts.
- Recheck after 24 hours.
If ads come back after a clean-up, something is reinjecting them. That usually means a hidden backdoor file or a compromised admin account.
Should you remove all ads from a WordPress site?
Remove ads if they slow the site, hurt user experience or earn too little, but if they make meaningful income, reduce and reposition them instead of removing them completely.
Too many ads hurt page speed and Core Web Vitals. A few well-placed units often earn nearly as much as many.
If you run a blog for income, read how to make money blogging with WordPress for options like affiliate links that do not rely on display ads.
Frequently asked questions
Why does my WordPress site show ads I did not add?
Common causes are the WordPress.com free plan, AdSense Auto ads, a theme with built-in ad slots, a plugin feature, malware, or adware on your own computer. Test while logged out on another device to narrow down the source.
Can I remove WordPress.com ads for free?
No. WordPress.com shows ads on free sites and removes them only on paid plans. The alternative is to move your content to a self-hosted WordPress site, which never adds ads of its own.
Why do ads still show after I removed the plugin?
A cache layer is usually still serving old pages. Purge your caching plugin, host cache and CDN, then test in a private window. If ads remain, check widgets, theme options and AdSense Auto ads.
How do I know if ads are caused by malware?
Malware ads often show pop-ups, redirect visitors to unrelated sites, or advertise suspicious products. They may appear only for logged-out visitors or mobile users. Run an external scan and a security plugin scan to confirm.
Do ads slow down a WordPress site?
Yes. Ad scripts load extra code from third-party servers, which can slow pages and cause layout shifts. Reducing the number of ad units or lazy loading them usually improves speed and Core Web Vitals.
Sources
- WordPress.com Pricing WordPress.com
- AdSense Help Center Google
- Site Kit by Google WordPress.org
- Hardening WordPress WordPress Developer Resources
- Sucuri SiteCheck Sucuri
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


