Method 1: The shortcode
Frame the content to be excluded with the shortcode [Tricot_notranslate] :
[Tricot_notranslate]Your content that does not need to be translated[/Tricot_notranslate]
Available attributes
- type HTML element to be used (div, span, p). Default value :
div - class Additional CSS classes
- style CSS styles online
Example
[Tricot_notranslate type="span" class="highlight" style="color:red;"]Text in red not translatable[/Tricot_notranslate]
Method 2: CSS class
Add the notranslate to any HTML element:
<div class="notranslate">Content not to be translated</div>
This method is ideal if you're working directly in the code or with a page builder that lets you add custom CSS classes.