-
AuthorPosts
-
June 7, 2020 at 10:50 am #1220170
Hi,
I need to edit the toggle buttons of the modal window to have them in English and in French.
Could you help?
Thanks.
CharlesJune 7, 2020 at 8:17 pm #1220275Hey lecoanetdesign,
Could you please attach some screenshots of the issue?
Best regards,
VictoriaJune 19, 2020 at 10:53 am #1224013My client needs the button in the cookies modal window to be in English and in French, so I need to edit them to have them in both languages.
June 24, 2020 at 10:55 am #1225114Hello, anyone to answer my request?
June 24, 2020 at 11:35 am #1225136Hi lecoanetdesign,
We cannot see the screenshot. Please, upload screenshots to a service like Dropbox or http://imgur.com and give us the links here.
Best regards,
VictoriaJune 29, 2020 at 10:30 pm #1226614Here is the link:
July 2, 2020 at 2:38 pm #1227508Hi,
Thank you for the info.
You can actually define your own toggle description or label by enclosing the text in the privacy shortcode. Example:
[av_privacy_video_embeds]This is a custom privacy toggle label for video embeds in French.[/av_privacy_video_embeds]
Best regards,
IsmaelJuly 2, 2020 at 6:25 pm #1227562Hi, thanks it’s working well except that I need to hide the one in English when on the French version of the website and vice-versa.
I do it for the text with <span class=”fr-cookie”> content </span> but the shortcode button still appears.
Anyway to hide it depending on the language?
CharlesJuly 6, 2020 at 9:42 pm #1228368Hi,
Thank you for the update.
There’s no option for it by default but your solution should be enough to only display the toggle for the current language.
Best regards,
IsmaelJuly 7, 2020 at 12:14 am #1228404Unfortunately it’s not enough. For whatever reason the english toggle disappears on the French version but the French toggle stays visible… For example :
<span class=”fr-cookie”>Ces cookies collectent des informations qui utilisées pour améliorer notre compréhension de l’usage du site et de l’efficacité de nos campagnes marketing, ou pour nous permettre d’adapter notre site de façon à améliorer votre expérience de navigation. Si vous ne souhaitez pas que nous analysions votre parcours vous pouvez désactiver ces cookies ci-dessous :
[av_privacy_google_tracking]Cliquer pour activer/désactiver le suivi par Google Analytics.[/av_privacy_google_tracking]</span>
<span class=”en-cookie”>These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.
If you do not want that we track your visit to our site you can disable tracking in your browser here:
[av_privacy_google_tracking]</span>So, I’m very confused…
July 10, 2020 at 10:29 am #1229368Hi,
What is the css code that you’re using to toggle the visibility of the buttons?
If you don’t have the css yet, you have to initially hide the toggles..
.fr-cookie, .en-cookie { display: none; }
.. then only display them on their respective languages:
html[lang="en-US"] .en-cookie { display: inline; } html[lang="fr-FR"] .fr-cookie { display: inline; }
If “inline” doesn’t work for you, try to replace it with “block”.
Best regards,
IsmaelJuly 10, 2020 at 5:24 pm #1229458I added your codes. It makes sense but it’s still not working. The French toggles stay visible on the English version. Is there something to do with the way the language is declared in the header?
July 13, 2020 at 4:47 pm #1229988Hi,
As much as I see in the HTML code the span attribute fr-cookie is not containing the checkboxes but only the text. Check this please. Both text and checkboxes must be inside for CSS to work.
Best regards,
GünterJuly 14, 2020 at 10:56 pm #1230454?!?! What do you mean by inside, is this not it? Did you see what I sent? :
<span class=”fr-cookie”>Ces cookies collectent des informations qui utilisées pour améliorer notre compréhension de l’usage du site et de l’efficacité de nos campagnes marketing, ou pour nous permettre d’adapter notre site de façon à améliorer votre expérience de navigation. Si vous ne souhaitez pas que nous analysions votre parcours vous pouvez désactiver ces cookies ci-dessous :
[av_privacy_google_tracking]Cliquer pour activer/désactiver le suivi par Google Analytics.[/av_privacy_google_tracking]</span>
<span class=”en-cookie”>These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.
If you do not want that we track your visit to our site you can disable tracking in your browser here:
[av_privacy_google_tracking]</span>July 16, 2020 at 7:29 am #1230848Hi,
My bad. I forgot to change selector for the FR language. Please update the code again.
We changed this line:
html[lang="fr-FR"] .en-cookie {
.. to:
html[lang="fr-FR"] .fr-cookie {
If it doesn’t work still, try to add the important rule to the display property.
html[lang="en-US"] .en-cookie { display: inline !important; } html[lang="fr-FR"] .fr-cookie { display: inline !important; }
Best regards,
IsmaelJuly 16, 2020 at 11:02 pm #1231040Yes, I corrected it already but still no luck. This is what I have in my CSS :
.fr-cookie, .en-cookie {
display: none;
}
html[lang=”en-GB”] .en-cookie {
display: inline !important;
}
html[lang=”fr-FR”] .fr-cookie {
display: inline !important;
}
… and the French toggle still stay visible on the English version… Meanwhile, the English toggle disappears as expected on the French version. (also tried to use “block” instead of “inline”)
Can’t figure that out…July 20, 2020 at 6:32 am #1231624Hi,
Thank you for the update.
We may need to access the site in order to check the issue properly. Please post the login details in the private field so that we can access the dashboard and edit the css when necessary.
Best regards,
IsmaelJuly 20, 2020 at 5:06 pm #1231799Ok, I joined the infos in the private section.
July 21, 2020 at 7:00 am #1231952Hi,
Some of the toggles or content are wrapped inside the fr-cookie element, but some are not such as this one.
<span class="toggle-label-content">Cacher en permance la barre de message et refuser tous les cookies. Nous avons besoin de stocker ces 2 paramètres. Dans le cas contraire il vous sera demandé d'ouvrir une nouvelle fenêtre ou un nouvel onglet.</span>
Make sure that they are wrapped inside an element with the fr-cookie class attribute or name.
<span class="fr-cookie"> CONTENT HERE </span>
Best regards,
IsmaelJuly 22, 2020 at 8:27 pm #1232395Where did you find this one… Are you trying for me to give up or what.
The toggle is enclosed…
<span class=”fr-cookie”>Ces cookies sont essentiels au bon fonctionnement de notre site et de ses fonctionnalités. En conséquence, les refuser aura un impact sur la manière dont le site fonctionne. Vous pouvez toujours bloquer ou supprimer les cookies en modifiant les paramètres de votre navigateur et forcer le blocage de tous les cookies de ce site. A chaque nouvelle connexion nous vous demanderons à nouveau d’accepter ou refuser les cookies. Si vous souhaitez refuser les cookies de manière permanente, permettez-nous d’enregistrer un cookie à cet effet. Nous supprimerons alors tous les cookies sauvegardés sur notre domaine, et vous fournirons une liste des cookies sauvegardés sur votre domaine de manière à vous permettre de vérifier ce que nous avons sauvegardés. Pour des raisons de sécurité nous ne pouvons vous fournir ou modifier les cookies d’autres domaines. Vous pouvez consulter ces derniers dans les paramètres de sécurité de votre navigateur.
[av_privacy_allow_cookies]Cacher en permance la barre de message et refuser tous les cookies. Nous avons besoin de stocker ces 2 paramètres. Dans le cas contraire il vous sera demandé d’ouvrir une nouvelle fenêtre ou un nouvel onglet.[/av_privacy_allow_cookies][av_privacy_accept_essential_cookies]Cliquer pour activer/désactiver les cookies[/av_privacy_accept_essential_cookies]
</span>Look closer please! Look closely to the one about Google analytics for exemple:
<span class=”fr-cookie”>
Ces cookies collectent des informations qui utilisées pour améliorer notre compréhension de l’usage du site et de l’efficacité de nos campagnes marketing, ou pour nous permettre d’adapter notre site de façon à améliorer votre expérience de navigation. Si vous ne souhaitez pas que nous analysions votre parcours vous pouvez désactiver ces cookies ci-dessous :
[av_privacy_google_tracking]Cliquer pour activer/désactiver le suivi par Google Analytics.[/av_privacy_google_tracking]
</span>
<span class=”en-cookie”>
These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.
If you do not want that we track your visit to our site you can disable tracking in your browser here:
[av_privacy_google_tracking]
</span>Everything is enclosed correctly, no? Still it’s not working.
July 27, 2020 at 11:25 am #1233481Hi,
Are you trying for me to give up or what.
No, not at all. In the front end, we just noticed that the language wrapper are not there, so we assumed that you just forgot to enclose some of the content.
To fix the issue, we replaced the span tag with div elements and somehow this worked.
Best regards,
IsmaelJuly 29, 2020 at 3:21 pm #1233956So, anyway, it’s working finaly fine. Thanks for the help. You can close this thread no.
Best,
CharlesAugust 2, 2020 at 11:42 pm #1234682Hi,
Glad Ismael could help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Edit toggle button of modal window (cookies)’ is closed to new replies.