Is it possible to add code to a button?

I’m trying to connect a ‘buy now’ button with Mindbody but I am only able to add the URL to the button in Editor X. I want to add the code provided by Mindbody to the button but having no luck. Pretty new to this so any help would be appreciated!

1 Like

You have to turn on Velo Dev Mode in the editor. Then you can add Javascript to the site.
Follow the API reference to help you out: https://www.wix.com/velo/reference/$w/button