Support » Plugin: GDPR Cookie Consent » Add display: none to #cookie-law-info-bar

  • Resolved jepperask

    (@jepperask)


    The bar flashes quickly before being hidden. It is fixed by adding display: none; to #cookie-law-info-bar in cli-style.css.

    Could you add it? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author webtoffee

    (@webtoffee)

    Hi @jepperask,

    Could you please explain the issue in more details so that we can find a better fix for this in the plugin? Also, please share the URL of the website you are having the issue on.

    The bar is visible by default, and then hidden if the user has already clicked.

    I suggest you do it the other way around, and hide it by default and then show it when necessary. When i clear cache and refresh, the text from the bar is visible for a brief moment before being hidden in cookielawinfo.js.
    I believe you already have this partially implemented, except the missing “display: none;” in CSS.

    Plugin Author webtoffee

    (@webtoffee)

    Hi @jepperask,

    Thank you for letting us know the fix you applied for this issue. But, this seems like a theme-specific issue since we are not able to reproduce this in our test environment and is rarely reported.

    haydnjames

    (@haydnjames)

    I’m seeing this same issue.

    I can apply the CSS via my theme, but it does make more sense for the bar to be hidden by default and made visible after the plugin has checked if it needs to be shown or not.

    I’m also seeing this issue, thanks @jepperask for the fix idea.

    Edit: can confirm this CSS fix works. Note that in v1.6.9 of the plugin the file cli-style.css that @jepperask refers to is now called cookie-law-info-public.css, but it’s better to just override this rule in your theme.

    • This reply was modified 11 months, 3 weeks ago by  thoughton.
    • This reply was modified 11 months, 3 weeks ago by  thoughton.
    • This reply was modified 11 months, 3 weeks ago by  thoughton.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add display: none to #cookie-law-info-bar’ is closed to new replies.