Hi,
I am trying to hide english songs (audio player no1) in turkish site and hide turkish songs in english site. so according to what I saw in forums I inserted this code, but it did not work. What do I do wrong here:
import wixWindow from ‘wix-window’ ;
$w . onReady ( function () {
let language = wixWindow . multilingual . currentLanguage ;
if ( language === “TR” ) {
$w ( “#audioPlayer1” ). hide ();
} else {
$w ( “#audioPlayer1” ). show ();
// Write your Javascript code here using the Velo framework API
// Print hello world:
// console.log("Hello world!");
// Call functions on page elements, e.g.:
// $w("#button1").label = "Click me!";
// Click "Run", or Preview your site, to execute your code
Hi! This code checks the IP address of the person, if it is in the country you specified, the audio player will be hidden. For this change this line: (ip ==="en")