Request: Extra Pro Gallery Title option: Title without filename extension ( .jpg / .png)

Working in
Wix Studio Editor / pro gallery

What I’m trying to do
bulk upload images, and auto named as its title without the file type ( .jpg / .png )

so I can display an image title without manually delete every single image its filename extension.

What I’ve tried so far
tried to delete its file type before uploading, the file extension, or display name, but not working

Not a perfect solution, but one that might help :slight_smile:

With a little code, you can remove the file extension from the live site. It’ll still appear in the Manage Media part of the Pro Gallery, but at least on the live site it would be removed.

Here’s a quick example of what it would look like:

$w.onReady(function () {
    $w("#gallery1").onViewportEnter(() => {
        // 1. Get current items
        let galleryItems = $w("#gallery1").items;

        // 2. Map through items to clean the titles
        const cleanedItems = galleryItems.map(item => {
            if (item.title && item.title.includes('.')) {
                // Find the last dot and take everything before it
                item.title = item.title.substring(0, item.title.lastIndexOf('.'));
            }
            return item;
        });

        // 3. Set the gallery items back with the new titles
        $w("#gallery1").items = cleanedItems;
        
        console.log("Cleaned Gallery Items:", cleanedItems);
    });
});