diegolamonica / EUCookieLaw3-wp

6 stars 0 forks source link

Page not working after consents banner disappear #10

Open Caine85 opened 6 years ago

Caine85 commented 6 years ago

Hi, thank you so much for the wonderful plug-in!

Once the consents banner is closed, the corresponding div is no longer displayed on screen, but in fact remains above all other elements, making the page work only after a reload.

I noticed, in the JavaScript version of this plug-in, that the line 587 of the file 'eucookielaw3.js' was commented, which could be the cause of the aforementioned error: // mainContainer.style.display = 'none';

For now I solved this error by editing the CSS of the theme I use in WordPress, adding:

.eucookielaw-modal.modal {
    z-index: -9999!important;
}

.eucookielaw-modal.in {
    z-index: 9999!important;
}

Thank you so much again!