/
Shopify: v2 CMP invisible after direct implementation

Usercentrics - PUBLIC

Shopify: v2 CMP invisible after direct implementation

An issue with direct implementation of Usercentrics privacy banner (v2) has been identified for Shopify platform.

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:

  1. Locate the usercentrics-root in the base.css file

  2. Remove the condition display:none

  3. Alternatively remove the condition div:empty

Workaround 2: inline override within the header

  1. Add the following line within your theme.liquid page:

<style>div#usercentrics-root {display:block; }</style>

→ This will override the information in the CSS file, allowing the banner to be shown.

Do you need further help?

Usercentrics Shopify Implementation Guide (CMP v2)

Shopify (EN)

Related content

Shopify Consent Tracking API
Shopify Consent Tracking API
Read with this
Usercentrics Shopify Implementation Guide (CMP v2)
Usercentrics Shopify Implementation Guide (CMP v2)
More like this
Shopify (EN)
Read with this
How to remove Usercentrics from my Shopify Store completely? I still see the banner and blocked services after APP uninstall
How to remove Usercentrics from my Shopify Store completely? I still see the banner and blocked services after APP uninstall
More like this
English FAQ Section
English FAQ Section
Read with this
Why is my cookie banner not displaying the changes I configured in the Usercentrics Cookie Manager app?
Why is my cookie banner not displaying the changes I configured in the Usercentrics Cookie Manager app?
More like this

Usercentrics - PUBLIC