Directory / plugin

Search Snippet Control for Blocks

v0.2.0 · by weareallconnected

Control whether supported WordPress blocks can be used in search snippets and AI-generated answers.

View on WordPress.org

About this plugin

Search Snippet Control for Blocks adds a toggle within Advanced settings of supported blocks to add a data-nosnippet tag, which excludes that content from search snippets and AI answers. The plugin adds the toggle to these blocks:

  • Group
  • Columns
  • Column
  • Cover
  • Media & Text
  • Buttons
  • Button

The switch is on by default, which leaves the block’s normal HTML unchanged. Turning it off adds data-nosnippet directly to the block’s existing div, section, or span root during server rendering.

The plugin is designed to be as lightweight as possible and never adds a wrapper. Paragraphs, Headings, Images, Lists, and other content blocks can be placed inside a Group or other supported block when an editor wants to exclude that section from search snippets and AI-generated answers.

Note that adding data-nosnippet does not change indexing or organic search visibility – only the wrapped contents’ eligibility for inclusion in snippets and AI answers.

Plugin tags