Linux 软件免费装

Infovarious Table No Auto Ads

开发者 infovarious
更新时间 2026年10月31日 18:02
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

adsense content ads table auto ads

下载

1.0.0

详情介绍:

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. What it does What it does not do Customization 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'; } ); Disclaimer This plugin is not affiliated with, endorsed by, or sponsored by Google. "Google" and "AdSense" are trademarks of Google LLC.

安装:

  1. Upload the infovarious-table-no-auto-ads folder to the /wp-content/plugins/ directory, or install the plugin from the Plugins screen in WordPress.
  2. Activate the plugin through the "Plugins" screen.
  3. View a post that contains a table and check the page source: the table is wrapped by <div class="no-auto-ads google-anno-skip">.
If you use a page cache, clear the cache after activating the plugin.

升级注意事项:

1.0.0 Initial release.

常见问题:

Do I need to change any AdSense settings?

No. The google-anno-skip class is read by AdSense directly. Changes may take some time to be reflected.

Does this remove all AdSense ads from tables?

No. It targets ad intents (in-text links and chips). Other formats are controlled in your AdSense account.

Can I exclude other elements, such as images or lists?

Not with this plugin. You can add the google-anno-skip class to any other element yourself.

Does it work with the block editor and the classic editor?

Yes. It works on the final HTML output of the post content, regardless of the editor used.

更新日志:

1.0.0