• Resolved christian70

    (@christian70)


    Hi,
    is there any way to prevent the plugin to add an alert on page when Revoke button is clicked? There’s no use to show that, I’d prefer to show cookies banner again to change the consent then.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author christophrado

    (@christophrado)

    Hey there,

    I personally think proper user feedback when clicking a button is a must, that’s why I implemented the alert in the first place. Just showing the notice again doesn’t tell the user what action was performed and what consequences the click had IMO.

    As of right now, there’s no way to change that behaviour. I’ll note this for a possible future improvement though. Thanks for the feedback!

    Thread Starter christian70

    (@christian70)

    Ok I understand. I just wonder if there’s a shortcode also to show banner again: if I need to block some content (i.e. embedded videos) before all cookies are accepted, it’d better to show placeholder with info text and a link or button to change cookies choice in order to show all content then.

    Plugin Author christophrado

    (@christophrado)

    You technically could use the revoke_cookie_consent shortcode, which clears the cookie choice and therefore will show the cookie notice again.

    What I’m building with the auto-blocking of embeds (can be enabled in the settings, beta/experimental for now) is a case-by-case unlocking of blocked content. I do see the point of changing the choice altogether though, might be easier with a lot of embedded content.

    Thread Starter christian70

    (@christian70)

    I see, auto blocking may be very useful. In my case I prefer to block code by myself in order to show something specific at blocked content’s place (for example a thumbnail instead of the blocked video).
    I’m using Revoke button as you suggested, and this is why I asked you if it’d be possibile to stop JS alert on browser and just let the banner show up again.

    Plugin Author christophrado

    (@christophrado)

    Ah, got it. Well, there’s two ways you could try as of now:

    1) You could just delete the cookie (cookie_consent) via JS yourself and initiate a page reload. That’s just what the revoke function does basically.

    2) You could just “un-hide” the cookie notice again. Just target #cookie-notice-consent and remove the cookie-notice-consent--hidden class. The notice will show again, and a new consent ID will be used/generated if a choice is made.

    • This reply was modified 2 years, 7 months ago by christophrado.
    Thread Starter christian70

    (@christian70)

    Yes, I’m testing the second way with two-lines of JQuery to remove the class by clicking on ‘Change my cooking choice’ link.
    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Revoke alert’ is closed to new replies.