Donnerstag, 20. November 2014

How to hide webpage parts from Google indexing

Wishes and needs to hide webpage parts from Google indexing are common. Before i proceed, i make one thing clear:

No tag can exclude webpage part from Google indexing!

The silly advice about a snake oil named googleon / googleoff is mantra-alike repeated in the wild web. The repeating won't make it working: googleon / googleoff do their job only inside of Google Search Appliance environment, said John Müller of Google. Hope we closed this discussion once and forever.

But don't worry! Believe it or not, i have for you whopping 4 workarounds, how to hide webpage parts from Google indexing. Let's look into one by one:

1. How to hide webpage parts from Google indexing with JavaScript

1.1. Requirement: This solution is based on JQuery! To get the solution working JQuery must be included into the file, whose part you want to exclude from Google indexing.

1.2. Solution

1.2.1. Mark up the webpage part you want to exclude from indexing with

Another technology to hide content parts from Google indexing is to make the page part, which is going to become hidden, as image and embed it into the page. But with this method one must care about how to make this embedded image responsible. This will be one of the next articles, about how to embed images and keep website responsible.