Adding the data-toggle attribute to the BB button module

Hello all!

I’m wondering, is it possible to add attributes to the Beaver Builder button module?

I’m using the Bootstrap Modals plugin and it uses the data-toggle attribute to trigger the modal window.

I could do this with an HTML module as well but I like using the button module and wanted to see if it’s possible and what it would take.

Thanks in advance,

Lawrence

Similar question and answer here

Just change it from download to data-toggle

Sorry. I’m doing a download. I the button to have data-toggle="modal" added to the tag so that it triggers code for the modal to open.

Unfortunately I’m not completely understanding your jQuery and how to use that.

There is this plugin for BB, it adds a data attribute field to modules: https://github.com/JasonTheAdams/BBCustomAttributes