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.
Cookies settings
We use cookies to collect and analyze information on site performance and usage, to provide social media features and to enhance and customize content and advertisements. Learn more with our Privacy policy
Necessary cookies

Some cookies are required to provide core functionality. The website won’t function properly without these cookies and they are enabled by default and cannot be disabled.

Non-necessary Cookie Settings

Any cookies that may not be particularly necessary for the website to function and is used specifically to remember preferences or to help us improve our website by collecting and reporting information on its usage.

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customize content and advertisements. Learn more with our Privacy policy