Questions and answers from the Weglot team


Frederick (Customer)

Integrating Javascript - exclude some part

Hi, I am integrating your translation tool with my site but want to stop translations of specific blocks of text, I wanted to use the css class to do this but I cant work out how to do this. I am NOT using a content management system like wordpress so cannot take advantage of their plugins. I appreciate any help on this. Thanks.

Max (Weglot Support)

Hi,

Thanks for your message.

You can exclude URLs and blocks. To do so, you have to enter these codes in your Weglot script:

exceptions:"",
excludeURLs:"",

The first one allows you to exclude blocks and the second one URLs. Just enter the CSS selector of the blocks you want to exclude (.this-class,#my-id)

I remain at your disposal if you have any other question.
Have a nice day,

Frederick (Customer)

Thanks Max. This worked perfectly.

Max (Weglot Support)

Hi,

Glad I could help!

Have a great day,

READY TO GET STARTED?
The best way to understand the power of Weglot is to see it for yourself. Get your website multilingual live in minutes.