Dear forum
I’m trying to hide (or collapse) a certain column strip on my page, if the language is English. I have looked at this thread: Hide certain elements on selected language site but I’m not able to get the code to work.
My code is the following:
import wixWindow from ‘wix-window’;
import wixData from ‘wix-data’;
// …
$w.onReady( function () {
let language = wixWindow.multilingual.currentLanguage;
if (language === ‘en’) {
$w(‘#columnStrip13’).hide();
}
I have tried to use both .hide and .collapse but none of them work. I have also tried to .hide or .collapse other items instead (as I was insecure if this was ment to work on a full columnstrip), but it doesn’t work either way.
Perhaps someone more skilled than me can see what’s wrong?
Thanks!