• polyfade

    (@polyfade)


    Buttons need more than one data attribute in order to pop open a modal.

    The following does not work. Sadly this only accepts the last data attribute, but it needs both to function:

    [button type="primary" link="#0" size="lg" data="target,#myModal" data="toggle,modal"]

    https://ww.wp.xz.cn/plugins/bootstrap-3-shortcodes/

Viewing 1 replies (of 1 total)
  • Plugin Author MWDelaney

    (@foolsrun)

    Hi,
    As noted in the documentation, data attribute and value pairs separated by a comma. Pairs separated by pipe.

    So the following will achieve what you’re looking for:

    [button type="primary" link="#0" size="lg" data="target,#myModal|toggle,modal"]

Viewing 1 replies (of 1 total)

The topic ‘Buttons and data attr’ is closed to new replies.