Link Through Image
-
Hello,
Is there a way to have the attachment shortcut displayed as an image? Not the image of the attachment but a link image of my choosing?
The link has to automatically download the attachment (as it currently works), not take to another page.
Thank you
-
I’d like the plugin to autogenerate a thumbnail of the file… like gmail does, making the thumbnail a clickable link.
You can custom code that. There filer hooks and pluggable functions available in the plugin.
Use it.
Wow fantastic!
Can you tell me where to find those please?
“filer hooks and pluggable functions available in the plugin.”
Where?
Please help
plugin folder includes/fuctions.php
Thanks dF
I don’t get it. Inside functions.php it refers to a css file.
Are you saying that I’d have to code the whole thing myself? Apologies… I thought you were saying that it was an option that we just had to enable.
Oops – apologies again! I was looking at the wrong file.
…Investigating…
I can’t work that out.
Over on the plugin website someone wrote:
In the functions.php file change a code
$html .= '<a href="plugins_url('download-attachments/includes/download.php?id='.$attachment['attachment_id'])).'" title="'.$title.'">'.$title.'</a>on
$attachment_id = $attachment['attachment_id']; // ID вложения $attachment_page = wp_get_attachment_url( $attachment_id ); $html .= '<a href="'.$attachment_page.'">I don’t understand what they meant by “on”. Do you replace the top section of code with the bottom section?
Many thanks
Sorry, this is a custom feature, you have to work on it on your own.
OK thanks
Any chance you could build that into a future version?
Do you know of any similar plugins that achieve this?
The topic ‘Link Through Image’ is closed to new replies.