Sensode Black and Cookie Banner |
Post Reply | Page 123> |
Author | |||
WattJet
Senior Member Joined: Jan 04 2016 Status: Offline Points: 256 |
Post Options
Thanks(0)
Posted: Apr 08 2021 at 5:41pm |
||
Hi, as per post on Cookie banner the free script provided by tarteaucitron works fine in creating the selection menu etc. I do, however have a problem in the template with regards of the position of two you tube videos To enable/disable the YouTube related cookies, the script requires me to: 1) add by this code <div class="youtube_player" videoID="video_id" width="width" height="height" theme="theme (dark | light)" rel="rel (1 | 0)" controls="controls (1 | 0)" showinfo="showinfo (1 | 0)" autoplay="autoplay (0 | 1)" mute="mute (0 | 1)"></div> 2) delete this code: "<iframe width="width" height="height" src="//www.youtube.com/embed/video_id" frameborder="0" allowfullscreen></iframe>" In my particular case, I had two videos, so in the corresponding section, the Source Code appeared as Code Block visual (box) and when you clicked on it, it appeared as: Code Block video1 & Code Block Video 2, each of them with the corresponding video id Everthing works fine (including the videos being operational or not depending on the cookie choice)... except the location of the videos. They now appear at the top of the section, completely out of place of where they should be: What do I need to do to put back the videos in their place? Edited by WattJet - Apr 09 2021 at 2:54pm |
|||
WattJet
Senior Member Joined: Jan 04 2016 Status: Offline Points: 256 |
Post Options
Thanks(0)
|
||
The issue is solved now.
What I did was copy the script provided in a code visual object and place them where they should be. Cookie banner -full compliant- works perfectly well (and to a complete noob in any IT programing related issues, it took me only 2 hours with no assistance.- anyone with a bit of knowledge will take minutes to put it in place and if you have websites addressing EU, I strongly recommend to adopt a compliant cookie banner) Cheers |
|||
WattJet
Senior Member Joined: Jan 04 2016 Status: Offline Points: 256 |
Post Options
Thanks(0)
|
||
The pending issue is how to change languages.
The tarteaucitron script contains locales in 20+ languages. I only need 7, but I have not found out how make work the .js for each language with the "current language" feature in oe. Any guidance will be more than welcome |
|||
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
||
WattJet
Senior Member Joined: Jan 04 2016 Status: Offline Points: 256 |
Post Options
Thanks(0)
|
||
Thanks for that Hobby001 I placed the "tarteaucitron" code in the base layer as recommended in the tutorial. I then tried to make it work in two ways: a) Enabling the language in the "edition du code" window as you indicate but keeping the default language in the Base tab b) Enabling the language in "edition du code" window changing the language also Base tab (in this part, there no choice enable/disable. I just changed the language to coincide in both windows None of these operations worked. I however checked the site in another laptop that has Spanish as Windows default language, and the cookie menus appeared on spanish. Is there any way to make the language of the cookies change based on the language chosen in the website, regardless of the preferred language in windows? |
|||
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
||
I will look after this tutorial when I get a minute
|
|||
WattJet
Senior Member Joined: Jan 04 2016 Status: Offline Points: 256 |
Post Options
Thanks(0)
|
||
Thanks so much Hobby001
|
|||
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
||
Try installing it a different way on the english version of your base layer:
HTML code block, header
javascript code block, header
Then enable french language in the javascript code block and change the link
|
|||
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
||
If this does not do it, the issue to solve is how to force language selection
|
|||
WattJet
Senior Member Joined: Jan 04 2016 Status: Offline Points: 256 |
Post Options
Thanks(0)
|
||
Thanks Hobby1 I'll give it a go and come back with the result (let's cross fingers)
|
|||
Post Reply | Page 123> |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |