The standard RW cookie warning thing floats over the content, but I want to switch to one that appears a the foot of the page, but pushes the content up, opposed to floats over it. Then, when clicked disappears.
I’ve now moved away from having a proper cookie warning, inline with GDPR, as absolutely no one else (from small site to the BBC) bothers to do it the right way, so I no longer bother.
I’d like for this new style of cookie warning to appear once per session, or better still, just once based on a cookie (oh the irony!), I’m pretty sure @tav Section Pro can do this? But, what I’m not sure about is how to have it stick to the bottom of the screen and push the content up, with a button that dismisses it and plants the cookie.
Thinking Chroma needs to be in there somewhere, but hoping someone else has already put together a solution and can give me some pointers?
I’m not sure what you mean by fixed to the bottom but pushing content up? That would infer it is just at the bottom of the page. If you mean that it does this at some point within the flow of the document that happens to be at the bottom of the screen at a given size then it doesn’t really make any sense as to how it would work.
I mean sticky at the bottom of the screen, all the time, not floating over the content, but “pushing” the content up, but when the dismiss button is clicked it disappears never to be seen again (or until cookies are cleared).
It is the pushing content up that I don’t understand, not floating.
How can something be stuck to the bottom without floating over the page unless you completely restructure the page in what would be effectively 2 stacked columns with the bottom one fixed.
That is a huge change in order to just give an effective margin which would not even be visible if the cookie warning was opaque.
Sorry, I just don’t get it.
Here is a page where there are 2 divs (like a stacked column if you like)
The bottom one is NOT floating, it is taking up the bottom 80px of the page.
The top one is sat above it and is not passing under it - i.e. pushed up. You can see this as I’ve made the footer transparent and you can see nothing going under it.
The point is - if the footer were not semi transparent could you tell the difference between this and a layout where the footer was floated and the bottom bit of content went under it? (Hint the answer is no).
I’m getting it straight in my head what I’m trying to achieve. Once that mess is sorted out (could take a while!), I’ll be back to you!
To backtrack though… Yes, the notion is pushing up is daft, as it just can’t happen. That’s just me being thick and not thinking things thru! But, I do kinda know what I mean, I just need to work it out completely in my head, then explain.
I’m away to the spin bike, back with another instalment soon :-)
I reckon quite often people don’t dismiss cookie warnings, they just leave them there, I reckon they are so common now they’ve just become white noice that people have gotten used to “not seeing”. Also possible that they think by not clicking “continue” no cookies will be loaded.
This is fine, you just make then a bit narrower, so that if people do leave them in place they are not too obtrusive. Except, in this case, then they get to the bottom of the page the cookie warning covers the sub-footer. Which on my sites is the link to the terms and policies pages and the “made by” link.
A panel that sticks to the bottom of the page (say 20px deep) plus a blank panel that sits at the very foot of the page. So if they don’t dismiss the cookie warning and scroll to the bottom, the sub-footer isn’t partially hidden behind the warning.
If they do click the Continue button in the warning, the warning AND the panel at the very bottom of the page disappear.