In some cases, there may be a conflict between the Hand Talk code and a script on the website. To avoid this conflict, simply add that element as an exception.
ID and CLASS Exception Handling:
If your site has any script conflict issues with a carousel, for example, you can add the element to the exceptions property.
Declare which ID or CLASS the Hand Talk Plugin will not use, as well as none of its child elements—that is, when you declare that #carousel will not use the translation, nothing inside this DIV or element will be translated. These elements should be inserted inside quotes and separated by commas.
Example of exceptions:
exceptions: ["#menu", "#carrousel", ".listas", ".formulario"]
Applying exceptions in the code:
<script src="https://plugin.handtalk.me/web/latest/handtalk.min.js"></script>
<script>
var ht = new HT({
token: "ABCDEFGHIJKLMNOPQRSTUVXYZ",
exceptions: ["#menu", "#carrousel", ".listas", ".formulario"]
});
</script>In the example above, we placed 2 HTML element IDs and 2 CSS classes as exceptions, respectively.
Attention: When adding content as an exception, it will not be translated by Hand Talk.
IMPORTANT: Depending on the language and/or programming logic applied in the website's development to enable full functionality of the feature on the site, additional configurations in the Hand Talk code may be necessary by those responsible for implementing the feature on the site.
Note: Be sure to check at the end of this documentation for the tool’s compatibilities.
Comments
0 comments
Please sign in to leave a comment.