• Resolved Daren Wesolowski

    (@dwesolowski)


    I would like to set the dismissOnTimeout, am I setting this correctly? it won’t work for me.
    {
    “palette”: {
    “popup”: {
    “background”: “#222222”
    },
    “button”: {
    “background”: “#f1d600”
    }
    },
    “content”: {
    “message”: “This website uses cookies to ensure you get the best experience on our website.”,
    “dismiss”: “Accept!”,
    “link”: “Learn more”,
    “href”: “https:\/\/mysite.com\/privacy-policy”
    },
    “behaviour”: {
    “dismissOnTimeout”: “3000”
    }
    }

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

    (@nikelschubert)

    Hi Daren, there was a bug in the cookie consent library. I just pushed an update to the wordpress repo.

    As soon as you update to 1.05 it should work.

    But you have to put the dismissOnTimeout on rout level of the json, e.g.:

    {
       "palette":{
          "popup":{
             "background":"#222222"
          },
          "button":{
             "background":"#f1d600"
          }
       },
       "content":{
          "message":"This website uses cookies to ensure you get the best experience on our website.",
          "dismiss":"Accept!",
          "link":"Learn more",
          "href":"https:\/\/mysite.com\/privacy-policy"
       },
       "dismissOnTimeout":3000
    }

    and the number must be an integer not a string.

    I hope i could help.

    Regards

    • This reply was modified 7 years, 8 months ago by Nikel.
Viewing 1 replies (of 1 total)

The topic ‘Options’ is closed to new replies.