Support » Plugin: GDPR Cookie Consent (CCPA Ready) » Shortly shows in header when browsing

  • Resolved kmorgen


    Thank you for this great plugin!

    Been setting it up, and apparently works, but I notice the banner shortly loads/appear in Header when browsing around (each time a page load). This occours even when already Accepted (and banner no longer shows in footer).

    Any idea on this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author markwt


    Hi @kmorgen

    We are seeing the banner in footer, see the screenshot attached. Banner shortly loads in header might be due to the slow content delivery ( may be some fonts, CSS , images ).

    Please leave us a review if plugin/support was helpful

    I have now tried several other GDPR/Cookie banner plugins, and they do not shortly load/appear in the top/header at each page refresh.

    I prefer to use this one since already setup, and design match theme. However it is quite annoying it keep appearing in the top of the page a second or so at each refresh (even after the banner in the footer have already beeen Accepted).

    It should be possible to avoid somehow, as do not experience this with any other similar plugins??!

    PS the Danish added in V1.5.7 is pretty horrible. Not sure if machine translated, but most is pretty rubbish. I will try to translate some when up and running.

    • This reply was modified 2 years, 2 months ago by kmorgen.
    • This reply was modified 2 years, 2 months ago by kmorgen.

    I’ve got the same issue here, and I agree with @kmorgen that there should be some way to avoid this, as other plugins, or even standard bottom parts of my own page, do not show this behaviour.

    My local fix consists of two parts.

    Part One is a bit of custom CSS only applicable to the footer situation:

    div#cookie-law-info-bar {
      position: fixed;
      bottom: 0px;

    Then, it’ll at least flash at the bottom.

    Part two is in cookie-law-info/php/functions.php line 95:

    $style = (isset($_COOKIE['viewed_cookie_policy'])) ? (($_COOKIE['viewed_cookie_policy']=='yes')?'display: none;':'') : '';
    $notify_html = '<div id="' . cookielawinfo_remove_hash( $the_options["notify_div_id"] ) . '" style="'.$style.'"><span>' . $str . '</span></div>';

    This will set the invisibility directly if the associated cookie is shown. It would be possible to instead assign another CSS class that does this, but I wanted to keep plugin changes to a minimum here.

    • This reply was modified 2 years, 1 month ago by ccrdude. Reason: Formatted inline code
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortly shows in header when browsing’ is closed to new replies.