This article will explain to you how to customize some of the texts not editable through the manager interface.
Use javascript to set the custom texts you'd like to use, wrap them in an event listener attached to CookiebotOnDialogInit
Below example shows how to change the text on the 'Show details' button on a Elemental Inline Multilevel type dialog.
Example if inserting the below directly in your html-template.
<script type="text/javascript">
window.addEventListener('CookiebotOnDialogInit', function (e) {
CookiebotDialog.showDetailsText = 'Expand information';
CookiebotDialog.hideDetailsText = 'Hide detailed information';
}, false);
</script>
If this is used in a an existing javascript or script block you may omit the <script>-tags.
The above would change the text "Show details" to "Expand information" and the text "Hide details" (Not shown in the screenshot) to "Hide detailed information".
This also applies to a Swift Inline Multilevel type dialog.
Since the Swift banner has a responsive design, there is no 'Hide details' label.
The code must be present on all pages on your website, either through inserting the script in your template, for instance the same place you insert our script in the first place, or by using a tag manager ensuring the tag fires on each page load.
Comments
0 comments
Please sign in to leave a comment.