Dear Kriesi
We would like to use the av_button label to have a sumome popup open within the website to signup. Now when using your function we tried to replace the link with data-sumom-listbuilder-id= but this doesn’t work. Instead of opening the popup it just jumps to the beginning of the page.
(pls find real listbuilder-id in private content)
[av_button label='Workout Overview' data-sumome-listbuilder-id="xxx-xxx-xxx-xxx-xxx" size='large' position='center' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff']
If we use the classic button formula, it works fine, but then the button looks very different from the button as we have defined it in the theme – which is why we want to use the above code and not the below one:
<button data-sumome-listbuilder-id="xxx-xxx-xxx-xxx-xxx">Click Here</button>
Do you know how we can use the data function within your button system?
Thank you for your help.
R
Hey eKMUch,
Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your button element and give it a custom CSS class and then add following code to Functions.php file in Appearance > Editor
function avia_custom_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery('.your-custom-class a').attr('data-sumome-listbuilder-id','9cc21303-ea2d-4d1f-afed-eb506397e88b');
});
</script>
<?php
}
add_action('wp_footer', 'avia_custom_attr');
Best regards,
Yigit