Solve image tooltip problem in repeater

The last couple of months I have tried to get rid of image tooltip in my repeaters that are connected to a dataset. I have tried the code:

$w.onReady( function() {
    $w("#dynamicDataset").onReady( () => {
        $w("#image1").tooltip = "";
    })
})

As soon as I use this code the images in my repeater show problems. When on the live page the wix stock images appear, I have to crtl+f5 to see the correct images… The tooltip is indeed gone but this code does mess up the loading of the images on my repeater. Even though this code shouldn’t make any problem, it does in my case. I have tried to see if there’s a problem somewhere else in my code that might interfere. But even on a page with no other code than only the tooltip code, the stock image problem still occurs.

Changing the image tooltip settings to no text or any other text has no effect.

Is there any other workaround to get rid of the tooltip?

I suggest that you reset the tooltip inside the repeater’s onItemReady() function.

$w("#myRepeater").onItemReady( ($item, itemData, index) => {
    $w("#image1").tooltip = "";
    // Or try this
    $item("#image1").tooltip = "";
})

Hope this helps~!
Ahmad

Hi Ahmad, thank you very much for helping. I entered your code like this:

$w.onReady(function () {
$w("#repeater1").onItemReady( ($item, itemData, index) => {
    $w("#image1").tooltip = "";})
});

At first sight it looked like it worked exactly as I wanted. Tooltip gone and no wix stock image problem! Unfortunately if I scroll down every time I click the view more button, the last image before view more changes to a wix stock image…

Any idea what I can do to not let the last image change after clicking view more?

($item instead of $w code unfortunately did not remove tooltip for me.)

How could it change? Can you please provide the URL if this page.

Here are the two pages that show the problem when clicking view more:

https://www.montuletgalleries.com/collection

Hey, you’re putting the dataset’s onReady() function inside the page’s onReady() function, in both of the pages.

Also, on the second page, you need to reorder your code, it’s really a mess, the import statements must be on top, then the page’s onReady() function and inside it the datasets’ onReady functions as well as all the repeater’s event handlers.

If you need assistance in your project you might consider checking out Wix Marketplace , or contact me on my profile.