I am having some issues with the hover box not having full functionality on the mobile view. The only solution I have is to add separate boxes on the website then hide them on the desktop view and make them appear only in mobile. However, the instructions for this on Wix is not working. It is hiding from my mobile and showing on my desktop. Does anyone have any suggestions about the hover box issue or the desktop/mobile hidden elements?
Hi Amanda ,
You can use Form factor to get what kind of device is being used to view the page, then hide show depends on your needs. for more information - formFactor API
Best,
Mustafa
Thank you for the reply! I tried the following code and it is still hidden in my mobile view. How do I use the code to get what kind of device is being used? I was under the impression if I use the code and element ID it would appear as I want?
import wixWindow from ‘wix-window’;
// …
let formFactor = wixWindow.formFactor; // “Mobile”
$w.onReady( function () {
if (wixWindow.formFactor === “Mobile”){
$w(“image8”).show();
}
});