Change buttons order - WEB

By default, the "Learn more" button will be displayed before the "Agree" button on the sticky banner and after it on the pop-in format. If you need to change the button order on a web notice, this article will help you to do so.

✅ Steps to follow 

  • Go in "Consent Notices". 
  • Then at the "Behavior" step.
  • Add code in the Custom JSON field. 

Screen Recording 2021-07-01 at 02.43.01.87 PM

✍️ Code to insert 

To change the order you need to set the value at :

  • "before" on pop-in format.
  • "after" on sticky banner format.

Pop-in format : 

{
"window.didomiConfig" : {
"notice": {
"learnMorePosition": "before"
}
}
}

Sticky banner format : 

{
"window.didomiConfig" : {
"notice": {
"learnMorePosition": "after"
}
}
}

How it should appear in the Console

Pop-in format : 

Sticky banner format : 

📰 You can read our developer guide for more information.