Add download attribute to a button

Assuming you’ve added download as a custom class for the button module this js will add the attribute to force the download.

jQuery(document).ready(function(){
    jQuery( ".download a").attr( "download", "download" );
});
1 Like