• Resolved davvam

    (@davvam)


    Hi

    A lot of our sites have content in the footer and on mobile the Consent button covers some of this content, is there a way to custom position the button when viewed on mobile?

    Thanks

    Dave

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @davvam,

    Sure, you have several options to change this. For instance, you could apply some CSS to position the button on the desired location. Several examples are provided in this article (https://complianz.io/css-lesson-18-positioning-the-consent-button/).

    If you’d want to apply the above rules only for mobile devices, wrap the CSS in a @media query like so:

    @media (max-width: 425px) {
        #cmplz-manage-consent .cmplz-manage-consent {
        /* your CSS here */
        }
    }

    Something else you could do would be to disable the button itself (Complianz -> Cookie Banner -> General -> Manage consent display options), and instead, implement a link in the footer of your website that reopens the Cookie Banner (https://complianz.io/add-a-link-to-show-the-cookie-banner/).

    Kind regards, Jarno

    Thread Starter davvam

    (@davvam)

    Thanks, will give it a go.

    Anonymous User 20597857

    (@anonymized-20597857)

    Mein Problem war ?hnlich:
    – Am Desktop war die Schaltfl?che kaum zu sehen, nur ein kleines wei?es Feld (die Schrift “Zustimmung verwalten” war erst beim Hover zu sehen)
    – Auf mobilen Ger?ten war es bei entsprechender Einstellung (“Hover auf Desktop – Anzeigen auf Mobile“) wieder zu stark pr?sent, verdeckte Teile des Inhalts.

    Also wollte ich den Button auch woanders haben
    Nur mit !Important geht es -> so schaut mein CSS ( hier ohne @ media {} ) aus:

    
       #cmplz-manage-consent .cmplz-manage-consent {
       height: 25px !important;
       bottom: 0 !important;
       padding: 6px !important;
       }
    

    Das ergibt eine relativ kleine, aber doch noch auffindbare Schaltfl?che.
    Aber der Hover Effekt ist damit weg.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Position of Manage Consent Button on Mobile’ is closed to new replies.