Mustafa.D
(Mustafa D.)
March 3, 2021, 10:56pm
1
Dear reader,
i want to add a cookie consent bar under on the website, but whenever i try the pixelgeek’s way i fail, i do exactly his way! but it keeps failing. i dont know how to fix it?
the cookie consent bar classname: cookies
the cookie exit button classname: cookiebutton
java script i last used:
Link to the tutorial : Here is how to add cookies to a custom modal
I followed pixelgeek step by step but cant figure it out, if someone can help me i would appriciate it!
kind regards.
Mustafa
Mustafa.D
(Mustafa D.)
March 4, 2021, 10:52am
2
anyone can help me with this?
magicmark
(Mark Willis)
March 4, 2021, 1:37pm
3
Hey @Mustafa.D
If you can share what is failing, or how it’s failing, it will help you get a quicker answer
Is it loading at all? What are you seeing when you publish the site?
If you can share any screenshots, videos and your read only link , we can hopefully work towards getting you a solution.
Mustafa.D
(Mustafa D.)
March 4, 2021, 1:50pm
4
yea ofcourse!
so it just does not work, whenever i click on the button it does nothing.
I used the code from pixelgeek and changed it to fit my project after that pasted the code into the before tag. like the tutorial said.
i can’t figure out why it doesnt work.
https://preview.webflow.com/preview/bespired?utm_medium=preview_link&utm_source=designer&utm_content=bespired&preview=ed9b058eef7735193bcee550ae9a9777&mode=preview
Mustafa.D
(Mustafa D.)
March 4, 2021, 3:01pm
5
@magicmark
this is the code wich should be correct but it doesnt work.
did i provide enough information? or need more information?
it basicly is a small popup that i want only appearing if a user did not use my site for over 40 days.
magicmark
(Mark Willis)
March 4, 2021, 3:06pm
6
Thanks for sharing your link Mustafa.
Are you able to test this on your published site? Custom code will not work as expected in the designer.
Mustafa.D
(Mustafa D.)
March 4, 2021, 3:08pm
7
yes i tried, but it fails
or is there any other way to achieve the same thing?
magicmark
(Mark Willis)
March 4, 2021, 3:43pm
8
Hey, so I made a video which was easier to explain
You need this snippet, as you’ll see:
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
Video: Loom | Free Screen & Video Recording Software | Loom
Let me know how you get on! Awesome looking site too!
Mustafa.D
(Mustafa D.)
March 4, 2021, 4:19pm
9
You are an angle!
i just dont know why i did not add it in, stupid of me!
thank you for your time!
Also thank you for the compliment
1 Like