Hi to all,
How I can do if I want to hide text to Google's spider?
Ok ok I can do it with text in the Image, but for some reason I need a textual zone in my website.
I only know the iframe + .js approach but I'm so trouble for a penalization...
|
2
|
Hi to all, How I can do if I want to hide text to Google's spider? Ok ok I can do it with text in the Image, but for some reason I need a textual zone in my website. I only know the iframe + .js approach but I'm so trouble for a penalization... |
||
|
|
|
1
|
Could you be more specific about your need? What kind of data should the textual zone contain? There can me more that one solution. For example, you can: * exclude the page with the robots.txt file * print the data with an external JavaScript and exclude only the JavaScript file with the robots.txt * use AJAX to load the content of the text section from an external source |
||
|
|
|
1
|
I didn't test, but you can try this way: You can put the text inside a fake attribute, for example:
Then you can add to your style:
In this two files you can insert the function that will print the text that you have inserted in the text attribute, inside the innerHTML of the .hide div (or divs). I've done for you the Firefox part of the script: |
||
|
|