Repeater display default items on mobile

I create website use wix code. On desktop no problem, but on mobile its not showing.

this page
https://www.petit-halo.com/menu

Hey
It does show up on mobile but not with the correct data in the repeater. So please change your subject on this post to a more descriptive one like “Repeater display default items on mobile”. So how have you connected the repeater? Through Dataset or code?

Change the subject thank you for your advice.

I made database and use repeater dataset.

desktop

Ok have you published the site and you test the published one on your mobile? I think you have missed to Sync the data between Sandbox & Live. Click the Data Collection, click the Sync icon in the menu and choose to Copy all items to Live and then test again. I believe your live database is empty.


If this works please mark my answer as Top Comment as it will help me.

Andreas thank you your reply.
I’d sync already. Because If I didn’t sync it, the desktop page not showing too.
But desktop one is no problem. Only mobile page.

This is Live data.

I solved.

wrote code mobile show

$w.onReady( function () {

});

import wixWindow from ‘wix-window’;

$w.onReady( function () {
if (wixWindow.formFactor === “Mobile”){
$w(“#repeater1”).show();
$w(“#repeater2”).show();
$w(“#repeater3”).show();
$w(“#repeater4”).show();
$w(“#repeater5”).show();
}
});

Ok so why do you have 5 repeaters on the page? I thought I only saw one repeater with 5 items inside. Very nice you solved the problem though, most important!

1 Like

@andreas-kviby
This page is restaurant menu page.
so Lunch menu Dinner menu…etc I categorize it.
my opinion was explanation was insufficient.

@nanami Ok then I understand. Hope it will work for you now.

1 Like

@andreas-kviby Thanks a lot!