• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Download Monitor & Manager Plugin

Simple Download Monitor & Manager for WordPress

  • Home
  • Documentation
  • Addons/Extensions
  • Login
    • Sign In
    • Edit Profile
    • My Downloads
  • Support
    • Tutorials
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
  • Contact Us
You are here: Home / Topics / How can I add an icon to the download button?

[Resolved] How can I add an icon to the download button?

· ·

WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › How can I add an icon to the download button?

  • This topic has 5 replies, 2 voices, and was last updated 4 years, 5 months ago by admin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • November 23, 2020 at 7:45 pm #1712
    seanchrisharris
    Participant

    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

    November 24, 2020 at 12:12 am #1715
    admin
    Keymaster

    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.

    How to Translate the SDM Plugin

    You can create a new translation file for your site that will use the labels that you specify in the translation file.

    November 24, 2020 at 4:57 pm #1716
    seanchrisharris
    Participant

    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″]

    November 25, 2020 at 12:49 am #1717
    admin
    Keymaster

    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:

    Direct Download Link (Text Link for a Custom Button)

    November 25, 2020 at 4:43 pm #1718
    seanchrisharris
    Participant

    Thanks for sending the direct download link information. I don’t think I can use that with the password protection though.

    November 25, 2020 at 11:34 pm #1719
    admin
    Keymaster

    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).

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons

  • Squeeze Form Addon
  • Hidden Downloads Addon
  • Amazon S3 Integration

Support Links

  • Support Forum

Search

Featured Plugin

WP Express Checkout Plugin

Start managing and tracking your file downloads with the simple download monitor plugin. Download Now

Copyright © 2025 | Simple Download Monitor | A member of the Tips and Tricks HQ family.