Replace Download Link Button text with Icon

in Download Manager Free

Viewing 2 posts - 1 through 2 (of 2 total)
Sep 25, 2019 at 5:53 pm
#112931
Member
Kostas
OP

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

Sep 29, 2019 at 11:33 am
#113048
Moderator
Shahriar
Staff

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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic "Replace Download Link Button text with Icon" is closed to new replies.