Jump to content

Add cookie bar to homepage - Ajouter une barre cookie sur votre homepage


3waccess

Recommended Posts

Bonjour,

 

Voici une solution pour ceux qui chercheraient à intégrer une barre Cookie sur leur homepage (frontage thème whmcs)

 

Adaptez ce script selon vos besoins.

 

Si cela peut aider quelqu'un ;)

 

*********************************

 

Hi,

 

Here a soluce for add cookie bar on the front page (homepage) for your WHMCS Theme.

 

Change info at yours needs

 

Hope this help ;)

 

*********************************

 

Ajoutez ce code juste avant la balise </head> de votre fichier header.tpl de votre thème WHMCS ou du fichier header que vous utilisez:

Add this code just before the balise </head> into the header.tpl file of your theme or into another header file you use:

 

 

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script*src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
 "palette": {
   "popup": {
     "background": "#252e39"
   },
   "button": {
     "background": "#14a7d0"
   }
 },
 "theme": "edgeless",
 "type": "opt-out",
 "content": {
   "message": "Agree with cookie ?",
   "dismiss": "Ok",
   "deny": "Refuser",
   "link": "More infos",
   "href": "/cgv.php"
 }
})});
</script>

 

Vous pouvez adapter directement ce script sur le site internet de l'éditeur ici :

You can change design of this script directly on the editor's website here :

 

Enjoy !

 

;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated