Skip to content

Conversation

@patrickbrown-io
Copy link
Contributor

@patrickbrown-io patrickbrown-io commented Dec 8, 2025

Addsdata-nosnippet attribute to the mega menu wrapper hides all mega-menu text including headings, labels, and descriptions from appearing in search results.

Note: The suggested googleoff/googleon markup only worked by Google Search Appliance and is ignored by Google Search and Programmable Search Engine.

Resolves #1724

@patrickbrown-io
Copy link
Contributor Author

Google does not support excluding specific sections of a page (such as the mega menu) from being indexed.

The old <!--googleoff--> / <!--googleon--> methods were only supported by the discontinued Google Search Appliance and are ignored by both Google Search and the Programmable Search Engine.

Originally posted by @patrickbrown-io in #1724

@patrickbrown-io patrickbrown-io deleted the issue/1724 branch December 9, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent Google from using content in megamenu for search results

2 participants