Change Working

Answered

Comments

4 comments

  • Avatar
    Martin Iv. – vConnect

    Hey Sarah,

    Cookiebot does provide a way to customize the Cookie Declaration. This can be achieved in the Settings in the Admin panel under Declaration tab. You will see that Cookiebot is using the Default template for showing the Cookie Declaration. You can change this to use a Custom template and modify it.

    You can follow the steps in this topic too https://support.cookiebot.com/hc/en-us/articles/360004374474-What-is-the-Cookie-Declaration-cookie-policy-and-what-is-included-in-it-

    Best regards,
    Martin

    0
    Comment actions Permalink
  • Avatar
    Sarah Moore

    Thanks for your relay Martin. 

    I'm still having trouble though. I've inserted the default template into the custom section. But I still cant find the text I'm looking for. 

    It appears on the full cookie declaration, as appose to the pop up box. Where would I change the content of the full declaration? 

     

    Thanks 

    Sarah

    0
    Comment actions Permalink
  • Avatar
    Martin Iv. – vConnect

    Hey Sarah,

    I see your point. When you change from Default to Custom template, this actually loads the Default template and gives you the opportunity to modify it. In other words you are customizing the default template.

    Regarding the part with "Your consent applies to following domains:...", unfortunately you cannot edit this text. This is dynamically called from the Cookiebot settings.

    As for the "Your current state...". This is the consent panel in the Cookie declaration. If you check in the Custom XSLT template on row 33 where it says:

    <div id="CookieDeclarationUserStatusPanel"></div>

     

    This is the element that is dynamically populated with this text and links. You can delete that and create new custom one using the Cookiebot JavaScript API and place it wherever you want. So this might look something like this:

    <div id="CookieDeclarationUserStatusPanelNew">

    My new text goes here: another new text
    ( <xsl:value-of select="//Labels/CookieTypeNecessaryTitle"></xsl:value-of>,
    <xsl:value-of select="//Labels/CookieTypePreferenceTitle"></xsl:value-of>,
    <xsl:value-of select="//Labels/CookieTypeStatisticsTitle"></xsl:value-of>,
    <xsl:value-of select="//Labels/CookieTypeMarketingTitle"></xsl:value-of> )

    <a href="javascript: Cookiebot.renew()">Change your consent</a>
    <a href="javascript: Cookiebot.withdraw()">Revoke your consent</a>

    </div>

    You can check more here for Cookiebot JavaScript API Methods.

    Regards,
    Martin

    0
    Comment actions Permalink
  • Avatar
    Pam Hardy

    Hi, I'm also trying to change the "Your current state" text. I tried updating my custom template with the code from Martin's post. However, the values for each of the four cookie types aren't updating when consent is changed or revoked, because those values are the titles for each cookie type, instead of the current value of whether or not the cookie type has been consented to or not. Is there a list somewhere of all of the different XSL values that we have access to?

    For clarity: if the user had previously consented to all four cookie types, that text would read: "My custom text (Necessary, Preferences, Statistics, Marketing). If they click "Revoke your consent" this text should change to "Allow necessary cookies only" but the text does not change when "Revoke your consent" is clicked.

    Thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.