What happens?
After direct implementation of the Usercentrics privacy banner, the website where it is implemented on becomes unusable in situations where the banner needs to be displayed (new visits / initial visits / privacy banner updates and resurfaces).
What’s the cause?
This happens due to a CSS tag of diplay:none set as active within the main CSS page. This causes the banner to load but not be visible.
This is a CSS issue within the base.css file on the Shopify website. There are currently two workarounds to this issue:
Solution
Workaround 1: Adjust the base.css page:
Locate the
usercentrics-rootin the base.css fileRemove the condition
display:noneAlternatively remove the condition
div:empty
Workaround 2: inline override within the header
Add the following line within your theme.liquid page:
1<style>div#usercentrics-root {display:block; }</style>→ This will override the information in the CSS file, allowing the banner to be shown.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article