hide specific wordpress sentence or text to Google robots

June 4, 2009 · Print This Article

How to only hide a portion of text to Google, your navigation menu for example?

Hiding a portion of text to Google is damn easy, but not everyone is aware of this method.

Simply use the following html comments in your source files (or in WordPress editor, in html mode) to hide a specific sentence or text to Google robots.

This text will be indexed by Google...
<!--googleoff: all--> ...but not that one! <!--googleon: all>

These tags tells Google that the text embeded within them should not be indexed. Of course, you can use it on your theme files, posts and non-WordPress websites/webpages.

Your choice for site templates and wordpress themes


Got something to say?

You must be logged in to post a comment.