Hiding the Cookie Widget

One question that we sometimes get asked, is "Can Change/Remove the Cookie Widget/Icon from the bottom of the screen?"

The answer is: "Yes, using CSS." (View Customizing/Styling Osano CMP for all CSS classes)

There is, however, a caveat. If you remove the cookie widget, you MUST give your users another way of accessing the Storage/Cookie Preferences. The "Storage Preferences" or "Drawer" is required in order to (1) Easily Explain Cookie Categories (2) Allow Users to Understand and Change their Preferences and (3) Disclose Cookies to End Users. 

You can trigger the drawer using the same widget, but customizing the icon image to something more brand-specific. 

Alternatively, you can hide the widget entirely and trigger the drawer via a text link. This is your choice, but to be compliant, you MUST provide the option for your users to see and change their cookie storage preference via the drawer. 

To hide the Cookie Widget:

  • .osano-cm-widget { display: none; }

To trigger the Storage/Cookie preferences drawer, you can utilize the following Javascript: 

  • Osano.cm.showDrawer('osano-cm-dom-info-dialog-open')
    • This is the preferred method
  • Osano.cm.emit("osano-cm-dom-info-dialog-open")
    • This is accepted, but we recommend using window.Osano.cm
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.