WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › Style a download as a link instead of button?
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by admin.
-
AuthorPosts
-
October 8, 2020 at 8:24 pm #1687Geocosm_2000Participant
Is there a way to style a download as a link instead of a button?
I know that I can do a regular link with an href of ?sdm_process_download=1&download_id=1234 however this link is not protected… I prefer to use the short-code which effectively protects this download to anyone who has access to the page.
I know I can change the styles globally by applying some changes to my css however that would make changes for ALL downloads (and for most I want the button).
Ideally there’d be a way in the short-code to specify display_as_link=”true” or a new fancy=”4″ or some such mechansim.
Is this possible?
October 9, 2020 at 12:07 am #1688adminKeymasterMaybe a download ID can be added in the CSS class so it can be targeted more specifically using CSS. Which shortcode are you using?
October 9, 2020 at 12:17 am #1690Geocosm_2000ParticipantYes, an id or even better a style_class=”link_style” – that way I could use some form of common class across all the link downloads on my site…
For the most part I’m using the shortcode [sdm_hidden_download…]
Thanks!
October 26, 2020 at 8:54 pm #1705[email protected]ParticipantCan we pick this convo back up? I really don’t like the buttons and would prefer to use links instead. Unlike Geocosm_2000, I don’t need some downloads to be links and some buttons; they can ALL be links. Suggestions? Thanks!
October 26, 2020 at 11:35 pm #1706adminKeymasterThe option to create a custom download link (instead of using the standard button) already exists:
If you are talking about changing the plugin’s behavior whereby you want the download button inside a fancy display to be a link, then that won’t work. A link cannot submit any information when clicked (a button can). A button can submit the form with other hidden information that is required by the plugin to offer some of the functionalities.
November 3, 2020 at 9:33 pm #1708[email protected]ParticipantThanks for replying, admin! I’ve used that link trick in the past, but now I want to use a link to trigger the Squeeze Form addon specifically — not just the download. Is there a way to link to the addon?
November 4, 2020 at 12:18 am #1709adminKeymasterThe actual squeeze form needs to submit the name and email details of the user which needs a form submission. So this is not possible for the standard squeeze form.
You can perhaps use the 4th template which has a link option to trigger the popup containing the squeeze form. So the initial trigger is a link to show the squeeze form. Try the template 4 option to see how it works:
-
AuthorPosts
- You must be logged in to reply to this topic.