Hey guys, I am NOT a coder of any sort but followed the wix instructions for the code to make this happen. This is what the code looks like below. It totally works in the sense that in the editing mode the button shows up, though is a lighter colour (and it doesn't on desktop version) but as soon as I hit Preview on mobile the element disappears, even though I've followed the code to the dot to make it visible on mobile (or so I thought). Perhaps it's also why it's a lighter colour?
So on the desktop site I've clicked 'hide on load' in developer tools, then entered this code:
import wixWindow from 'wix-window'; $w.onReady(function () { if(wixWindow.formFactor === "Mobile" && wixWindow.rendering.renderCycle === 1) { $w("#button9").show(); $w("#button13").show(); $w("#button14").show(); $w("#button15").show(); $w("#button16").show(); $w("#button17").show(); $w("#button18").show(); $w("#button19").show(); } } );
What do I do?? What am I missing?? Thanks team! Oh - I also tried it without the render cycle as per the original recommendation and just got the same thing, this was the 'optimised' version of the code but no difference.
Please post the editor URL of your site. Only authorized Wix personnel can get access to your site in the editor. Please include the name of the page involved.