Thread Starter
will48
(@will48)
Hi naa,
Thanks for your reply.
Ok, the problem so far is that once I have linked the image to another url ( with an <a href wrapper ) what I then download becomes an html file and not an image, which for me is useless.
If I simply want to download the image without a link using [easy_media_download url=”any url” force_dl=”1″] that works fine.
Perhaps you could replicate what I am trying to do, that is, add an image to a page ( from wp media libary ) add a hyperlink and then try and download it to your pc with the link intact. If it’s possible, it would be a great addition to the plugin’s many features.
I really appreciate your time; if you can find a solution to this problem it could be advantageous to us both.
Thanks,
Will
@will48, Please provide a link so I can take a look.
I’m not sure what you are trying to do. Are you trying to use an image as the button in the shortcode? or Are you directly embedding an image from the media library and then linking it to a file?
You can’t just link to any URL in the “url” parameter. It needs to be link to a file (e.g. image, video, audio etc).
Thread Starter
will48
(@will48)
Hi naa,
My apologies, I should have provided you with a link so that you could see first hand exactly what I’m trying to do.
This is a link to a page on my test site: http://www.activityneeds.co.uk/testphone/
If you click on the telephone image it simply redirects you to a youtube page. What I want to do is download that image complete with link intact.
In order to do that I included the following code ( behind the button ):
[easy_media_download url=”<img class=” wp-image-174883″ src=”http://www.activityneeds.co.uk/wp-content/uploads/2016/04/Testphone.png”width=”35″ height=”26″/> ” text=”Download” width=”90″ height=”30″ force_dl=”1″]
This actually works but the download comes as an html file and not an image.
The purpose of all this is to allow visitors to download the ‘image’ complete with link which they can then add to an email as a kind of emoticon/emoji.
I hope that explains what I’m trying to achieve.
Once again, thanks for your time.
Thanks. It doesn’t work that way. In this shortcode you can only specify a path (not the HTML embed code). I believe you are trying to do this:
[easy_media_download url=”https://www.youtube.com/watch?v=RcZn2-bGXqQ” text=”http://www.activityneeds.co.uk/wp-content/uploads/2016/04/Testphone.png” width=”90″ height=”30″ force_dl=”1″]
The only problem is that you can’t directly download a YouTube video. So It will just work as a redirect link.
Thread Starter
will48
(@will48)
Hi naa,
Thanks for your reply. I think I understand what you’re saying, that is, I can only specify a path to an image or file and not one that has a hyperlink attached to it.
May I reiterate though, I do not want to download a youtube video. I only want to download an image ( any image) that has an embedded hyperlink to youtube or any other 3rd party site.
Therefore, I believe what you’re saying is that what I’m trying to do is not possible.
I really appreciate your time.
Many thanks