Hi.
It’s not a paragraph of text that I can add html code to.
On the website homepage you see a left sidebar which is made using an Elementor plug-in to query posts- all the elements displayed here are entered via fields in Elementor, none of the fields allow html input.
This is what I have tried…
In Elementor I have added an ‘CSS ID’ to the whole sidebar section; ‘vehicle-sidebar’.
From your linked page I took the code and added this to my Theme Function.php :
add_filter( 'trp_no_translate_selectors', 'trpc_no_stranslate_selectors', 10, 2);
function trpc_no_stranslate_selectors($selectors_array, $language){
$selectors_array[] = '#vehicle-sidebar';
return $selectors_array;
}
but it made no difference.
I also tried the Translate Press options in Elementor Advanced tab for the Section – I was hoping one of these switches would just prevent translation but still display content in English for both languages selections – but the Elementor settings both had the same effect of hiding the section completely when second language selected;
*Restrict by Language – set to English (shows in English hidden in Thai Language)
*Exclude from English – set to Thai (shows in English hidden in Thai Language)
As I mentioned Translate Press is breaking the HTML this is the code from Developer Tools;
ENGLISH
<div class="oew-grid-media clr">
<p>
<a href="https://krabigreenday.omnisvision.com/nissan-march-2/" title="Nissan March" class="oew-grid-img"></a>
</p>
THAI
<div class="oew-grid-media clr">
<p>
<a href="https://krabigreenday.omnisvision.com/th/nissan-march-2/" title="<trp-post-container data-trp-post-id=">Nissan March” class=”oew-grid-img”></a>
</p>
Please note in this case I don’t even want the Titles of the car names ‘Nissan March’ translated into a second language. I want them displayed as ‘Nissan March’ throughout.
Any suggestions would be gratefully received.
thanks
-
This reply was modified 4 years, 9 months ago by deanes.
-
This reply was modified 4 years, 9 months ago by deanes. Reason: edit code formatting