O
O
Oleg Denisov2013-11-15 16:17:43
HTML
Oleg Denisov, 2013-11-15 16:17:43

How to disable indexing of modal window content?

The site has a modal block that is shown when entering and visiting one of the sections to warn that the material on the site has an age limit. How to disable indexing of this modal block?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
Boris Syomov, 2013-11-15
@c1n1k

It is necessary to load the contents of the modal window dynamically, when it is opened.
Usually, scripts that implement modal windows either already have such an opportunity through the settings, or they generate an event by which you can execute a JS function that will load the content into the desired element with an ajax request.

G
GreatRash, 2013-11-15
@GreatRash

You can add text to the modal block dynamically with a script. Then it won't get indexed. For example, using Ajax to get text from a file for which indexing is prohibited.

L
LionAlex, 2013-11-15
@LionAlex

Enclose the entire block code in
<noindex>...</noindex>

D
dutchakdev, 2013-11-15
@dutchakdev

I'm guessing
but I'm not sure

M
Maxim Ivanushchik, 2013-11-16
@makis

You can insert a warning with a pretty picture or display it through Canvas .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question