Вот информация:
Основной блок div для баннера имеет три класса (.cky-consent-container .cky-hide .cky-classic-bottom). Я установил display:none для этих классов.
Я все это перепробовал, но безуспешно:
Код: Выделить всё
$(document).ready(() => {
setTimeout(() => {
if (!Cookies.get('alert')) {
$('.cky-consent-container').show();
Cookies.set('alert', true, { expires: 1});
}
}, 15600);
});
$(document).ready(() => {
setTimeout(() => {
if (!Cookies.get('alert')) {
$('.cky-consent-container').fadeIn();
Cookies.set('alert', true, { expires: 1});
}
}, 15600);
});
$(document).ready(() => {
if (!Cookies.get('alert')) {
$('.cky-consent-container').delay(156000).fadeIn();
Cookies.set('alert', true, { expires: 1});
}
});
(Вот как я добавил свой скрипт в свой файл function.php:
Код: Выделить всё
function custom_head_script() { ?>
Подробнее здесь: [url]https://stackoverflow.com/questions/79848171/jquery-cookie-pop-up-banner-delay-is-not-working[/url]
Мобильная версия