I came here to say the exact same thing. Not only is it wildly intrusive on every. single. page. of wp-admin in all client sites with Yoast installed, but it’s also impossible to dismiss. The little X in the corner doesn’t register a closing click; it just acts as if I’d clicked on the banner (at least in FF 70). So I have no way of dismissing it, despite several clients complaining about it.
I was hoping to find a filter but (obviously) they didn’t put one in. So there are 3 4 ways of dealing with this:
1. Add this filter:
function vnmFunc_removeYoastAds() {
WPSEO_Options::set('bf_banner_2019_dismissed', true);
}
add_action('admin_init', 'vnmFunc_removeYoastAds');
This will immediately set the dismissed
trigger of the banner so that it won’t even try to appear again (that is, until the next time Yoast updates and adds a Christmas sale banner)
2. Add ?yst_dismiss_bf=1
to the end of the /wp-admin/
URL – this has the same effect as adding the filter.
3. Implement xsonic’s CSS suggestion. Arguably this will hide it for as long as Yoast use the same class to display their ads; however I don’t know if they’re also adding tracking via the images (and my guess is they most likely are).
4. Uninstall Yoast. And I won’t be at all surprised if this is what a lot of people end up doing.
For shame, Yoast. This is weak af.