Style file upload fields

You can customize how Uploadery’s file upload field looks on your product page. This allows you to restyle the upload button and change the text that appears before and after a file is uploaded.

This guide applies to themes that use product.liquid or main-product.liquid.

Follow the steps below to make these changes.

Step 1: Open Your Theme Code

From your Shopify admin:

  1. Go to Online Store > Themes

  2. Find the theme you want to edit

  3. Click Actions, then select Edit code

Step 2: Locate Your Product Template File

In the Templates folder, look for:

If your theme does not have product.liquid and instead uses product.jsonGo to the Sections folder and open:

Step 3: Add the Uploadery Script

Scroll to the bottom of the file and paste the following code:

Click Save.

Step 4: Add Custom Styling in Uploadery

  1. From your Shopify admin, go to Apps > Uploadery

  2. Click the Settings tab

  3. In the Custom CSS field, paste the following code:

Click Save, then refresh your product page.

Click Save, then refresh your product page to view the changes.

Updating the Text Within the Upload Field

To change the text displayed on the upload button, edit this section of your Custom CSS:

Replace the text inside the quotes with your preferred messages.

The first message appears before a file is selected. The second message appears after the upload is complete.

Click Save and refresh your product page.

Optional: Show the File Name After Upload

If you would like the uploaded file name to display instead of “Upload Complete,” follow these steps.

Step 1: Replace the Script in Your Theme File

Remove the script from Step 3 above and replace it with this version:

Click Save.

Step 2: Update the Custom CSS

Add this snippet to the bottom of your Custom CSS:

Click Save and refresh your product page.


circle-exclamation

Last updated