Adding link data points to buttons

Hi there,

I would like to add some variables to the buttons I’ve created. Is it possible to do via Cornerstone or should I create raw content?

For example; data-plugin=“nsl” data-action=“connect” data-redirect=“current” data-provider=“facebook” data-popupwidth=“475” data-popupheight=“175”

Hello Kyle,

Thanks for writing in!

For this I would suggest you to use Button shortcode and add the same in Raw Content or text element. For shortcodes, please take a look at following resource.

http://demo.theme.co/integrity-1/shortcodes/buttons/

Thanks.

Can I add these data points to the shortcode? Or do you mean copy and paste the html generated by the shortcode?

Hello Kyle,

Thanks for updating in!

You will need to get the html code of the button and add those data attributes.

<a class="x-btn x-btn-square x-btn-small" href="#" title="Example" data-options="thumbnail: ''" data-plugin="nsl" data-action="connect" data-redirect="current" data-provider="facebook" data-popupwidth="475" data-popupheight="175">Small Square Button</a>

Hope this helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.