• Resolved nofcfro

    (@nofcfro)


    Is there a shortcode that allows you to show the cookie banner again to change and update your previously chosen preferences?

Viewing 1 replies (of 1 total)
  • Plugin Author pressidium

    (@pressidium)

    Hey, @nofcfro!

    There’s no shortcode for this.

    However, you can:

    • Use a floating button that allows users to open the settings modal and modify their cookie preferences at any time. You can enable this via wp-admin → Cookie Consent → Floating Button
    • Control it programmatically by calling pressidiumCookieConsent.showSettings() (docs)

    Show the settings modal.

    pressidiumCookieConsent.showSettings(optionalDelay)
    • optionalDelay — (optional) number

    Examples:

    // Immediately show the settings modal
    pressidiumCookieConsent.showSettings();
    
    // Wait 250 ms, then show the settings modal
    pressidiumCookieConsent.showSettings(250);

    You can learn more about how to control the plugin programmatically by referring to its wiki.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.