Customize Breadcrumbs for Dynamic pages in Wix Studio

C

Does your breadcrumb still say (Item)? Yep, not very helpful!

To make your breadcrumbs display the dynamic item’s actual name, you’ll need to add custom Velo code to your dynamic item page in Wix Studio. This post shares a generic script and explains step by step how to customize it for your specific use case.

General Example for Custom Breadcrumbs on Dynamic Page Items

In the generic example below, you’ll need to customize seven items (bolded in the code) to match your site’s content structure.

$w.onReady(function () {

  $w("#dynamicDataset").onReady(() => {
    const currentItem = $w("#dynamicDataset").getCurrentItem();
    const currentItemLabel = currentItem.title;
    const currentItemLink = currentItem["link-category-title"];
    
	 $w("#breadcrumbs").items = [
    {
      label: "Home",
      link: "/"
    },
    {
      label: "Category Title",
      link: "/category-title"
    },
    {
      label: currentItemLabel,
      link: currentItemLink
    }
  ]

  })
});

Before and After Example: Breadcrumbs on Dynamic Item Pages

Default Wix Breadcrumb:
Home > Experiences (Item)

After Custom Code:
Home > Experiences > Experience Name

How to customize this Velo script

1. Find Your Dataset ID

First, you’ll be working on the Dynamic content’s Item page (mine is called “Experience”).

In edit mode, on this dynamic (Item page, you need to identify which dataset is already connected.

In Wix Studio, the CMS panel is on the right, and that’s where you’ll found your dataset’s ID. Mine was named #dynamicDataset, which is the default in many cases, but yours might be different — so it’s important to confirm.

Once you’ve located your dataset ID, you’ll need to use it in two spots in the Velo code. Both are highlighted below.

$w("#dynamicDataset").onReady(() => {
    const currentItem = $w("#dynamicDataset").getCurrentItem();

Here’s what to do:

  1. Open your Dynamic Item Page in Wix Studio.
  2. In the right-hand CMS panel, find the connected dataset.
  3. Note the Dataset ID (e.g., #dynamicDataset).
  4. Use that ID to replace the two Dataset IDs in the provided code.
The CMS connection panel in Wix Studio for a dynamic Item page. Find dataset ID here.

2. Locate the Field ID for the Collection’s Title or Name

Next, you’ll grab the Field ID from your Collection. This is the content you want to show as the final breadcrumb (for example, the Experience’s name).

In Wix Studio, go to CMS > Your Collections and open the Collection powering your dynamic page. Mine is called “Experience.”

Once in your CMS Edit view, look for the field that holds the item’s name or title. In most cases, this will simply be called Title. Click the three-dot menu (horizontal ellipsis) next to that field and select Edit.

A modal window will open with a label called Field ID. This is the value you’ll use in the Velo code.

Copy your CMS Wix Studio field ID from modal accessed via Edit.

You’ll replace title in this line of code with your Field ID.

const currentItemLabel = currentItem.title;

Here’s what to do:

  1. In the CMS panel, open your Collection.
  2. Click the three-dot menu next to the field you want to use as the item’s name (likely Title).
  3. Choose Edit to open the Field ID modal.
  4. Copy the Field ID.
  5. Use that ID to replace title in the code.

3 Find the Field ID for the Slug (URL) of the Item

Now let’s update the breadcrumb so that the link goes to the correct item page. For that, you’ll need the Field ID for the item’s slug, which is typically auto-generated by Wix Studio and often labeled with something like link-[collection-name]-title.

To find it, go back to the Collection that powers your Dynamic Item Page (mine is “Experience”). Look for the field that represents the (Item) or Slug/URL.

Just like before, click the three-dot menu next to that field and choose Edit.

In the modal that opens, copy the Field ID. If your Field ID includes dashes (like link-experiences-title), you’ll need to use brackets and quotes in the Velo code.

.You’ll include this Field ID in this piece of the Velo code.

change
const currentItemLink = currentItem["link-category-title"];
to
const currentItemLink = currentItem["link-experiences-title"];

Here’s what to do:

  1. Open your Collection in the CMS.
  2. Find the Slug/Item field — the one that links to the item’s dynamic page.
  3. Click the three-dot menu and select Edit.
  4. Copy the Field ID shown in the modal.
  5. If the Field ID includes dashes, use brackets and quotes when inserting it into the code.
  6. Replace the original Field ID in the code with your new one.

4. Locate the ID of Your Breadcrumbs Element

Now that the Velo code knows what to display and where to link, we need to tell it where to insert this custom breadcrumb.

That’s where the Breadcrumbs element ID comes in.

If you haven’t already added a breadcrumbs element to your Dynamic Item page, go ahead and do that now. In 2025, Wix Studio offers four design styles for breadcrumbs. Choose the one that fits your site’s look and feel.

4 breadcrumb design elements to choose from Standard in Wix Studio

Once the breadcrumbs element is added to your page, select it in the Layers panel or directly on the canvas. Then, look in the left-hand Layers panel to find its ID. It starts with a hashtag (e.g., #breadcrumbs1). You’ll need this exact ID to update the code so it applies to your specific element. (You can also see the #ID by selecting the item in the preview area.)

By default, the provided code snippet uses #breadcrumbs, but yours may be different. You’ll want to replace it with your actual breadcrumbs ID. In my case, the ID is #breadcrumbs1. I put that ID name into the following line of Velo Code.

 $w("#breadcrumbs").items = [

change to

 $w("#breadcrumbs1").items = [

If you’d like to change the breadcrumb element ID, click the three-dot menu (horizontal ellipse) and select Rename. Now, simply type in a new desired ID name.

Use the horizontal ellipse from the Layers panel to choose the option Rename for an element ID.

Here’s what to do:

  1. Add a breadcrumbs element to your Dynamic Item page (if not already added).
  2. Select the breadcrumbs element in the Layers panel.
  3. Locate and copy the element ID (it’ll start with #).
  4. Replace the default ID in your Velo code with your specific breadcrumbs ID.
  5. (Optional) Rename the element for clarity — use the three-dot menu in the Layers panel to rename it.

Customize your Slug and Title for the Custom Category Breadcrumbs

Next you’re adding your Collection’s name that you want to see as the Item List page. For this example, I’ll use Experiences. My Slug for Experiences /experiences.

{
      label: "Category Title",
      link: "/category-title"
    },

change to

{
      label: "Experiences",
      link: "/experiences"
    },

Results

On the live or preview site for the dynamic page item, the breadcrumb now shows as: Home > Experiences > Experience Title.

For example, it looks like this:

Example of customized breadcrumbs for dynamic page items in Wix Studio

To keep in mind, on the Edit page for Dynamic (Item) the breadcrumb will still have (Item) in the title. For example, mine looks like this.

Example of standard dynamic pages breadcrumbs in Wix Studio

Frequently Asked Questions

Where do I put the Velo Code?

The code area is minimized and maximized from the bottom of your screen. To learn more about the Code Editor (IDE) check out Wix Studio documentation.
Open dynamic code area from bottom of page.

Related Posts

How to Set a Max Width in Wix Studio (And Why You’ll Actually Want To)

Max-width settings can improve content readability. Combine this with customized breadcrumbs for a polished, user-friendly design.

About the author

Kelly Barkhurst

Designer to Fullstack is my place to geek out and share tech solutions from my day-to-day as a graphic designer, programmer, and business owner (portfolio). I also write on Arts and Bricks, a parenting blog and decal shop that embraces my family’s love of Art and LEGO bricks!

By Kelly Barkhurst

Recent Posts

Archives

Categories