Google AdSense “ad intents” can turn words inside your content into links, or show chips, that open a dialog with related ads. When this happens inside a table, the result can overlap or break the layout of the table.
Google documents a class named google-anno-skip that excludes a section of a page from ad intents. This plugin adds that class for you: it automatically wraps every table in your post content with a div element, so you do not have to edit each post by hand.
<div class="no-auto-ads google-anno-skip">.google-anno-skip class.the_content filter. Tables printed by a theme template outside the post content are not changed.You can change the class names with the tnaa_wrapper_class filter. Keep google-anno-skip in the list, otherwise AdSense will not exclude the area.
add_filter( 'tnaa_wrapper_class', function ( $classes ) { return $classes . ' my-extra-class'; } );
This plugin is not affiliated with, endorsed by, or sponsored by Google. “Google” and “AdSense” are trademarks of Google LLC.