Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, Just to remind you, I am not a programmer. For my paraglider website http://www.fly-msp.de I need help with the ‘Cookie Agreement Popup’. This does not work if the page is named *.php. The popup works with *.html. 1) Is there a way to fix this? 2) Can it always be displayed when the page is called up, not just the first time? Thanks for your help. Wolfgang |
||||
|
In order to let it show everytime (although this is a bit contrary to what it is supposed to do), just create a JavaScript code element somewhere on the top of your page - before the overlay - and enter this code in there: localStorage.setItem("cookieOverlay", "show"); Uncheck the "create div around code" option. Then it is shown every time. Using it inside of PHP: It should work also on PHP pages - nothing unusual there. Maybe something else is going on there? Do you get an error message in your browser console? |
||||
|
Thank you very much. It does not work in the browser preview. There is no error message otherwise. |
||||
|
Difficult to say without seeing it - maybe you could send me the file and I'll have a look |
||||
|
For your information, there is unfortunately some confusion. The cookie agreement pop-up works. Apparently, a cookie is also set in the preview browser and the pop-up no longer appears. So there is no problem with php/html as I wrote. The short JavaScript works, but now the pop-up appears every time the page is accessed via the menu within a session. My idea was that this pop-up would appear once every time the website was visited. Best regards, Wolfgang Translated with DeepL.com (free version) |
||||
|
Ah, ok, so everything is fine now? Nice. |
||||
|
Not really nice. The banner should appear every time the website is visited. But not every time you click on the navigation menu to go to a page via the menu. Perhaps a solution can be found for this. |
||||
|
Uh - that's strange - what is the use case for this? |
||||
|
Thank you for your attention. I will reconsider my plans, |
||||
|
|