• Resolved MrMattEastwood

    (@mrmatteastwood)


    Hi, Complianz team,

    Using version 6.0.1, at screen widths below ~350px, the cookie banner stops being responsive.

    I made a GIF showing the issue with a banner that has no custom CSS applied:
    https://gfycat.com/plumpwhitehuman

    For the life of me, I can’t figure out how to fix this with CSS. I was expecting to find a min-width rule on some element that I could override, but no dice. Any help would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @mrmatteastwood it looks like there is a lot of custom css at work. Can you remove all custom css, so we can see if there’s anything in the default settings that is conflicting with your theme css maybe?

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Hello Rogier, thanks for the quick response! I removed my custom CSS.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I still get some css like this:

    .cmplz-btn {
        height: 20px !important;
        font-size: 12px !important;
        padding: 0 !important;
    }

    Which isn’t included in the plugin css. Is it possibly cached? I see some divi cache.

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Hmm, strange. I checked again and found some old CSS written for a previous Complianz version in the Customizer. Deleted that, too. Also cleared the Divi cache. No caching plugin is active at the moment. (we do use WP-Optimize though, which I quickly activated, cleared all cache and then de-activated just now)

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I think it’s in the custom css section of the cookie banner settings, as I see the custom css still in the banner css file:

    https://praxis-dynamis.de/wp-content/uploads/complianz/css/banner-1-optin.css

    At the bottom, all css with !important. If you disable the “use custom css”, this should be removed from the banner css.

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    I was sure I removed it earlier, but when I just checked, it was still there. Guess I had a senior moment there. It should be gone now. I saved and Complianz automatically populated the field with default CSS (no rules, just selectors).

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    There is a min width in our default code on the body. I’ll do some research which phones use screen sizes below 350px and discuss it internally.

    In the meantime, can you try the following as custom css?

    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body {
        min-width:initial;
    }
    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Nice, thanks for the code. With that, I’m getting an extra 50 pixels – the banner stops adapting to screen size at around 300 px. I’d say that’s perfectly fine ??

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I think I’ll include that in the base css as well, with a media query. Thanks for confirming.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Banner not responsive below 350px’ is closed to new replies.