WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › Adding Last name and Zip Code to Fancy 4 Template
- This topic has 8 replies, 3 voices, and was last updated 1 week, 2 days ago by
admin.
-
AuthorPosts
-
September 22, 2020 at 1:48 am #1666
handinhand
ParticipantIn order to sync with my email client, I need to collect zip code. I’d like to also collect last name. Is there a way to do this?
Thanks,
BlitheSeptember 22, 2020 at 3:06 am #1667admin
KeymasterNo, it doesn’t have an option for it at the moment.
September 24, 2020 at 2:55 pm #1674handinhand
ParticipantThere is no way to add a custom field of any kind? Many list builders require a zip code.
October 4, 2025 at 10:01 am #2453noxigen
ParticipantThis post is very old but being able to customize, clone and add new templates would be very beneficial.
October 6, 2025 at 1:09 am #2461admin
KeymasterWhen it comes to customizing the code, it is advisable to utilize hooks (action hook or filter hooks).
We are generally very receptive to incorporating new action or filter hooks into our plugins or addons. If you have specific suggestions, please feel free to indicate the exact file and line number where you believe a hook would be beneficial. We will add the hook and give you an update.
October 6, 2025 at 11:08 am #2462noxigen
ParticipantWhat I’m suggesting is the ability to clone the existing templates you have or create new ones to customize the look of the download button or widget. So where SDM generates a download form with the following button HTML:
<a id="sdm-hd-69a63dc7-btn" href="#0" class="sdm_download white" title="some_file.zip">Download Now</a>
Giving us the ability to define our own templates, we could customize the button portion of the HTML with other information and style like so:
<b>Some File</b><br /> <a id="sdm-hd-69a63dc7-btn" href="#0" class="sdm_download white" title="some_file.zip">Get this/a> <div>Size: [sdm_item_file_size]</div> <div>[some_custom_field]</div <small class="text-muted">[sdm_description]</small>
October 6, 2025 at 11:46 pm #2463admin
KeymasterThank you for the details. We will add an option for this.
October 7, 2025 at 3:30 pm #2464noxigen
ParticipantAwesome. Thank you.
October 9, 2025 at 7:36 am #2495admin
KeymasterWe have updated the addon so a template file can be customized.
If you’d like to modify one of the Squeeze Form templates from the Squeeze Form Addon (for example, the Fancy 1 template), you can override it by placing a customized copy in your active theme’s folder.
Follow these steps:
1) Locate the original template file in the Squeeze Form addon’s directory:
2) Copy the file and place it in the following location within your active theme:
sdm-squeeze-form/templates/sdm-sf-template-1.php
3) Edit and customize the copied template file as needed.
your-active-theme-directory/sdm-squeeze-form/sdm-sf-template-1.php
The addon will automatically detect and use the template file from your theme folder instead of the default one.
-
AuthorPosts
- You must be logged in to reply to this topic.