Impossible à mettre en bas :)
-
Bonjour,
Je n’arrive pas à mettre le popup tarteaucitron de “middle” à “bottom” !
J’ai installé la dernière version du tarteaucitron.
et j’ai aussi ceci dans mon functions.php (de mon Divi-Child theme)<?php function my_et_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_script( 'divi', get_stylesheet_directory_uri() . '/js/scripts.js', array( 'jquery', 'divi-custom-script' ), '0.1.1', true ); } add_action( 'wp_enqueue_scripts', 'my_et_enqueue_styles' ); /* === Add your own functions below this line === * -------------------------------------------- */ /** * Initialize tarteaucitron */ function tarteaucitron_init() { ?> <script src="<?= get_stylesheet_directory_uri() ?>/lib/tarteaucitron/tarteaucitron.js"></script> <script type="text/javascript"> tarteaucitron.init({ "privacyUrl": "", "hashtag": "#tarteaucitron", /* L'identifiant permettant l'ouverture du bloc de Tarteaucitron. Laisser tel quel */ "cookieName": "tarteaucitron", /* Nom du script que nous avons définit à la ligne 3 de la fonction précédente */ "orientation": "bottom", /* La position de la bannière. Soit en haut soit en bas (top - bottom) */ "showAlertSmall": true, /* Show the small banner on bottom right */ "showAlertBig": true, /* Show the small banner on bottom right */ "cookieslist": true, /* affiche la liste des cookies */ "adblocker": false, /* affiche une alerte si un adblocker est présent */ "AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */ "highPrivacy": true, /* désactive le consentement automatique */ "handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */ "removeCredit": true, /* supprime le lien de crédit */ "moreInfoLink": true, /* affiche un lien "en savoir plus" */ "useExternalCss": false, /* tel quel, le css de tarteaucitron.css sera chargé */ "readmoreLink": "/cookiespolicy" /* définit le lien "en savoir plus" */ }); </script> <?php } add_action('wp_head', 'tarteaucitron_init'); /** * Add GOOGLE TAG MANAGER and other services using tarteaucitron */ function add_tarteaucitron_services() { ?> <script type="text/javascript"> tarteaucitron.user.googletagmanagerId = 'UA-XXXXXXXXXXX-1'; (tarteaucitron.job = tarteaucitron.job || []).push('googletagmanager'); </script> <? } add_action('wp_footer', 'add_tarteaucitron_services'); ?>
De ce que je comprends c’est ceci qui détermine la position :
"orientation": "bottom"
Du coup je me tourne vers vous pour savoir ce que je fais mal.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Impossible à mettre en bas :)’ is closed to new replies.