M
M
minminminmin2015-09-13 10:54:23
DLE
minminminmin, 2015-09-13 10:54:23

How to hide Adsense banners on multiple pages in DataLife Engine?

The page contains a link from rotapost. Adsense swears and asks to remove it.
What should be written in the template code to turn off the display of an ad on a specific page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Orlov, 2015-09-13
@minminminmin

The most primitive way is to connect the php file:
and in it:

if (!in_array($_SERVER['REQUEST_URI'], ['/','/admin.html','/chat.html', '/contacts.html'])) {
 // показываем баннер везде кроме указанных страниц
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question