Here’s a quick snippet to disable those (annoying) Jetpack ads and upsells that show in the WordPress dashboard if WooCommerce is active. Thankfully, Jetpack provides us with a filter, and hiding those banners is quite easy. Pity there is no option in the settings (as of now).
Here’s the 1-line PHP snippet for you – add it to your websites and avoid annoying banners for all users. Enjoy!
Those ads you see in the WP Dashboard belong to Jetpack… here’s how to hide them
Snippet (PHP): Disable Jetpack Ad Banners @ WordPress/WooCommerce Admin
You can place PHP snippets at the bottom of your child theme functions.php file (delete "?>" if you have it there). CSS, on the other hand, goes in your child theme style.css file. Make sure you know what you are doing when editing such files - if you need more guidance, please take a look at my free video tutorial "Where to Place WooCommerce Customization?"
Does this snippet (still) work?
Please let me know in the comments if everything worked as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting on PHP 7.3.
If you think this code saved you time & money, feel free to join 14,000+ WooCommerce Weekly subscribers for blog post updates or 250+ Business Bloomer supporters for 365 days of WooCommerce benefits. Thank you in advance :)
Need Help with WooCommerce?
Check out these free video tutorials. You can learn how to customize WooCommerce without unnecessary plugins, how to properly configure the WooCommerce plugin settings and even how to master WooCommerce troubleshooting in case of a bug!
Rodolfo Melogli
Business Bloomer Founder
Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.
Update – I had the code in my functions.php already and it has been working, but now the Jetpack ads have returned with a vengeance. This time it is an “Connect Jetpack to activate WooCommerce Shipping & Tax”
Great suggestion – thank you for making this easier for me – it is driving my clients mad seeing these and creating confusion. Clients think they need this or that added every time they get into the back end of their site. I’m all for simplicity and a streamlined flow.
Would be nice with an article about why JetPack should be used at all. It’s been reported over and over pretty much everywhere that it slows your site down. I would never even go near it.
Hey Jessica, thanks for your message! I use it on this same website, and by activating only the “modules” I need, it does not slow it down. JetPack is totally fine to use and because it’s Automattic’s property, they’re also very responsive with support. Give it a go 🙂
Because then after a week a new one can pop up.
Using the suggested code above you’ll never see annoying ads like this again… (until they change the code/filter/function)
Questions? Feedback? Support? Leave your Comment Now! _____
If you are writing code, please wrap it between shortcodes: [php]code_here[/php]. Failure to complying with this (as well as going off topic, not writing in English, etc.) will result in comment deletion. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining BloomerArmada to get blog comment reply priority, ask me 1-to-1 WooCommerce questions and enjoy many more perks. Thank you :)
With 100,000 (and growing) monthly organic sessions, Business Bloomer is the most consistent, most active and most complete WooCommerce development/customization blog.
Of course this website itself uses the WooCommerce plugin, the Storefront theme and runs on a WooCommerce-friendly hosting.
Did not work for WP 6.1.1. Shucks!
Screenshot, please?
Update – I had the code in my functions.php already and it has been working, but now the Jetpack ads have returned with a vengeance. This time it is an “Connect Jetpack to activate WooCommerce Shipping & Tax”
Ouch. Do you use the “WooCommerce Services” plugin? If not, simply disable it. If yes, I’m sure there is a way of hiding that, let me know
Still seeing this on my end as well with the snippet in functions.php. We DO NOT have the Jetpack plugin installed either, which makes it a bit odd…
Can you do a test with https://wordpress.org/plugins/disable-dashboard-for-woocommerce/? If it works with that plugin, I can reverse-engineer which function you should use
Yes it worked fine. I placed at the bottom of the PHP file, well below the <?.
Stephen
Nice!
Hi,
it seems that it´s not working anymore in woocommerce 3.7.
Anyway to fix this ? Also, is it not enough to deactivate “Woocommerce Services” ?
Thanks,
Jorge Correia
Was it working on previous versions for you? I don’t see any JP ads on my end on 3.7
Great suggestion – thank you for making this easier for me – it is driving my clients mad seeing these and creating confusion. Clients think they need this or that added every time they get into the back end of their site. I’m all for simplicity and a streamlined flow.
Nice!
Looks like with Jetpack 7.5.3 this no longer works – I see a pinterest ad right now.
Not sure… I don’t think Jetpack has anything to do with Pinterest?
This is apparently working in general, but does not seem to stop the ads in Opera browser.
Perhaps it handles the PHP differently?
I don’t think so… try clearing Opera cookies/cache
Would be nice with an article about why JetPack should be used at all. It’s been reported over and over pretty much everywhere that it slows your site down. I would never even go near it.
Hey Jessica, thanks for your message! I use it on this same website, and by activating only the “modules” I need, it does not slow it down. JetPack is totally fine to use and because it’s Automattic’s property, they’re also very responsive with support. Give it a go 🙂
Why not just click the little x on the right hand side? Works for me.
Good point John, but I noticed even if I click on “x” the ads and future ads keep coming back after a while 🙂
Because then after a week a new one can pop up.
Using the suggested code above you’ll never see annoying ads like this again… (until they change the code/filter/function)