Linking pages in dropdown

Question:
How do I connect pages to items in a custom dropdown menu?

Product:
Wix Editor

What are you trying to achieve:
I am trying to figure out how to connect the items in a custom dropdown menu to related pages within the site. This is not within the navigation menu. The pages I need to link to are not dynamic pages. This would be within the body. And this is in Wix Editor, not Studio.

What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]

You can implement a custom Dropdown Element by setting the .options parameter using the Dropdown Element API.

This will allow you to fill the dropdown element with custom labels and associated values. In order to populate this data you can hardcode an array of Option objects, or use other APIs to get the data necessary to properly populate your dropdown element.

1 Like