- This topic has 5 replies, 2 voices, and was last updated 4 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Download Monitor & Manager Plugin
Simple Download Monitor & Manager for WordPress
· ·
WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › How can I add an icon to the download button?
Hi,
I’d like to change a couple things about the output of download button. I am not that experienced with PHP. Can you give me some sample code for my functions.php file I can use for the below items?
1. I’d like to add an icon to the download button and or add an additional css class.
2. I’d like to change the wording of the password label.
Thanks!
Sean
The download button should already have CSS classes. We do have a few different shortcodes so if you tell me which one you are using then I should be able to take a look at it.
Any user visible labels can be customized by having a custom translation for your site. All the front-end messages and labels come from the translation file.
You can create a new translation file for your site that will use the labels that you specify in the translation file.
Thanks for the reply. If we can wrap the button text with a span inside the “a” link that would be helpful. I can use css :after to render an icon that way.
Here is my shortcode.
[sdm_download id=”5481″ fancy=”1″]
That shortcode creates a Button Type element which can’t be a link at the same time. The button can submit a form (which is required for the standard use).
Instead, use the following option to create a custom link so you can use a text link and then it gives you to the option to customize your text link how you want to:
Thanks for sending the direct download link information. I don’t think I can use that with the password protection though.
Yes, the password feature needs an HTML form to be submitted. That requires the HTML “form” element (it can’t be done with a simple URL).
Start managing and tracking your file downloads with the simple download monitor plugin. Download Now