After Blog adventure, I’m having fun with a homemade cookie consent in PHP (A wonderful creation of the GDPR ). I managed to get it working, but I couldn’t add a blur effect; Xway doesn’t seem to recognize it (so for now, I’m using an opaque background at 95%). Here’s the code I used for the blur :
You’re adding that in After <body> or Before </body> presumably?
The blur works for me, but you can’t see it behind an almost completely opaque colour. If I change the background colour to have a smaller alpha value, the blur is visible.
This is “Hello world” when the background colour alpha value is 0.2:
As a footnote, it seems that Safari (17.6) doesn’t recognise the un-prefixed version of blur, but recent versions of other browsers do. I see you’ve added both, so that should be fine.
You could also add this box directly on the Xway page (instead of within Generic markup), and perhaps give it a Display value of None so it’s not normally visible and doesn’t get in the way of editing. You could then change that in your PHP code.
Thank you very much for your precise and detailed answer. Yes, I integrate this piece of code before /body. The problem I encounter seems to be the following: bad luck (I am seriously considering an exorcism, unless I am in an Indian cemetery, in which case the exorcism will not work either ). You use the code that I indicated and it works, for me it simply does not work, it is not that the blur is hidden by the opacity of the background, there is nothing that works, that appears, when I use this code. As soon as I remove the mention of the blur, it works. In any case, I am persevering, so I am getting back into the adventure and will keep you informed. For the record, when I talk about bad luck, it’s usual for me, it happens to me very frequently, the last example with Xway before this one is my relative addressing for the cookie consent (now my blog attempt) that is causing me problems, Simon explained to me how to do it but it’s the addressing that I use correctly, so… if exorcism doesn’t work, I’ll try Shaman.
ADD: Ok, I told you: bad luck!!! I just copied and pasted the piece of code that I posted on the forum, now it works perfectly well. And yet the exorcist didn’t have time to arrive, I have to remember to cancel it.
Sorry for this waste of time, in any case I now have a functional consent cookie that I can configure as I want. Come on, I’ll try tomorrow to solve my relative addressing problem for my blog.
Despite these little problems that are specific to me, I really enjoy using Xway.