Use thumbnail as link
-
Hi,
My client has requested modifications to the fancy2 format. The Download button is not required (I could do this with CSS but read on!) and the thumbnail is to provide the link to download.
I note your comments but I can’t see how to apply these requirements as a filter in this case.
1. Please could you or the readership suggest how to achieve this as a filter?
I have built a solution that instead requires modifying includes/templates/fancy2/sdm-fancy-2.php. On line 150, change:
$output .= '<div class="sdm_fancy2_download_thumbnail">' . $isset_download_thumbnail . '</div>';
Into:
$output .= '<div class="sdm_fancy2_download_thumbnail">' . '<a href="' . $download_url . ' target="' . $window_target . '">' . $isset_download_thumbnail . '</a></div>';
This does the trick but will of course be overwritten next time the plugin is updated.
2. How do I place this code somewhere where it won’t get overwritten?
Very many thanks,
Phil.
- The topic ‘Use thumbnail as link’ is closed to new replies.