Closed lam0r86 closed 2 years ago
Hey Matthias,
have a look at: the wiki
You can easyly replace the console.log()
in the example with something like: location.reload();
.
I hope that helps you.
@michnhokn Thanks at all, but where do I change it? Sorry but I am not an really expert by this, but Iam familiar with php. If you can tell me where, then it would be easy for me :) #
Should it be changed inside of:
Sorry for complicated question :-/
Now I tried adding to cookie-modal.js with no effect
const $body = document.querySelector('body');
$body.addEventListener('cookies:saved', function(event) {
location.reload();
//console.log('Saved cookie features:', event.detail);
})
Hey @lam0r86,
No problem with pleasure.
Best before the footer
tag. Accordingly in the footer.php
.
There then simply wrap with a script tag:
<script> ... </script>
I hope this helps.
Thanks to you @michnhokn yesterday i found Helpful script at getkirby. Now it is okay 😉 thanks
Hey @michnhokn
How to add Cookie stuff to essential cookies?
<?php if (isFeatureAllowed('essential')): ?>
br Matthias
Hey @lam0r86
What excatly do you mean? You define what the essential cookies "contain" by yourself. There is no more features then saving the consent from the users in this plugin.
Hello,
got a problem. When cookies are accepted all or saved once, the code won´t start directly. I have to refresh the page, that the cookie is loaded. Are there any options to make a page refresh after accepting cookies?
BR Matthias