Hi everyone,
I would like to replace the “Download” text in Download Link Button with an Icon from Awesome fonts or what else.
Any idea what I have to do?
Thank you very much
Kostas
Hi,
By default, No HTML is allowed as the button label. But you can override it using wpdm_custom_data
hook. Add the following code to your theme’s functions.php
file and set the font awesome icon <i class="fa fa-download"></i>
in “Link Label:” option of package settings.
function wpdm_html_link_label($data, $ID){ $data['link_label'] = get_post_meta($ID, '__wpdm_link_label', true ); return $data; } add_filter('wpdm_custom_data','wpdm_html_link_label', 10, 2);
Best regards.
The topic ‘Replace Download Link Button text with Icon’ is closed to new replies.