Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @futuramx,

    To add a delay to load banner, please try adding below code snippet to your active child theme’s functions.php

    add_action('wp_footer', 'show_tab_by_default', 10);
    function show_tab_by_default()
    {
    if (class_exists('Cookie_Law_Info')) {
    ?>
    <script>
    jQuery(function() {
    CLI.bar_elm.hide();
    var timeDelay = 2000; //Time in milli seconds, ,1000 ms = 1 second.
    setTimeout(function() {
    if (!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) {
    if (CLI.settings.notify_animate_show) {
    CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
    } else {
    CLI.bar_elm.show();
    }
    }
    
    }, timeDelay);
    
    });
    </script>
    <?php
    }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Banner Load Delay’ is closed to new replies.