
I already shown you how to easily prevent Search Engine indexing on a certain post or page. But how to only hide a portion of text to Google, your navigation menu for example? Just read on to get started.

I already shown you how to easily prevent Search Engine indexing on a certain post or page. But how to only hide a portion of text to Google, your navigation menu for example? Just read on to get started.
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>
That's 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.
Apart from that, I recently purchased a new blog, which is called PsdVibe. If you're interrested in Photoshop tutorials (mostly for designing websites/WordPress blogs) don't hesitate to add PsdVibe's feed to your rss reader!
21 Responses
Great tutorial…!
i need your little help about showing word count of the post.
if word count is more than 160 than it shows that post length is 2 and if it is more than 250 than it shows that post length is 3.
how can i do this
can you write a tutorial on it ?
this post length must be shown at the bottom of every post
Thanks
This code is working like a robot.txt
The Google “googleoff: all / googleon: all” tags only work on sites that use the Google search appliance. As far as I know it doesn’t work for the regular Google bots. It would make cloaking just to easy.
@Lenen: Never heard of it, though regarding to what you said you are probably right. I’ll do some research about it.
Thanks for letting me know!
@Jean-Baptiste Jung, this is the documentation I found:
Searchappliance documentation
lenen is right, these tags are interpreted by the google search appliance, not the googlebot web crawler.
http://code.google.com/apis/searchappliance/documentation/50/admin_crawl/Preparing.html
Great tutorial man. Never thought before.
I wish there were a tag like this for the regular google bot, too. It would be sooo helpful!
it would be great if someone answer the question asked by me in 1st comment
Thanks
@SMS: This post is a good start for what you’re attempting to do
Great tip and useful in the same time.
This won’t trigger any problem in terms of indexing and search engine rankings? This is a nice piece of a code but I am afraid this one will be exploited by the others?
That’s pretty neat. I’ve never would have guessed that wordpress could embed it’s own sort of robots file. Thanks.
Its completely match with robot.txt and i think its not a good trick, its a black
hat seo technique..
@Seo83: Black hat, something created/released by Google?
Isn’t this like the best seo trick on earth?
Awesome trick Jung. I was looking for it for months. I simply couldn’t find any hack or method that could allow you to hide simple text from google. Thank you very much! Bookmarked
This is awesome. Thank you very much for this. I have never seen this before so i really appreciate you sharing this trick.
I should be able to use this soon.
Great info…. thanks…
Whoa, I’ve totally never heard of this before, and I’ve listened to alot of Matt Cutt’s lectures, hehe.
Till then,
Jean
Trackbacks: