Lawrence
(Lawrence Carriere)
1
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
pross
2
Similar question and answer here
Just change it from download to data-toggle
Lawrence
(Lawrence Carriere)
3
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.
avanti
(Emmanuel Soyer)
4
There is this plugin for BB, it adds a data attribute field to modules: https://github.com/JasonTheAdams/BBCustomAttributes