Linking Images to Full Image File
-
Thanks for your recent help in getting your shortcode and hooks to work as I needed. I’ve got one more issue. I’m using the shortcode like this:
[mla_gallery orderby=”title” attachment_category=”June-11th” mla_caption=”{+title+}” mla_markup=paypal mla_styles=paypal]
and this is my code that hooks into your plugin:
function add_paypal_button_to_images ( $template ) { $template = '<td><table class="item_table"><tr>'; $template .= '<td class="gallery-icon">[+link+]<br /><p class="item_title">[+title+]</p></td></tr>'; $template .= '<tr><td class="image-paypal-form">'; $this_shortcode='[wp_cart:[+title+] Product:price:[Size|3.5" x 5" $1.00,1.00|4" x 6" $1.50,1.50|5" x 7" $2.00,2.00|8" x 10" $2.50,2.50]:end]'; $template .= print_wp_cart_action($this_shortcode); $template .= '</td></tr></table></td>'; return $template; } add_action( 'mla_gallery_item_template', 'add_paypal_button_to_images', 12, 1);
It all works great but none of the images are clickable to get to the full screen image nor are they right-click downloadable. I thought the “[+link+]” code would have taken care of the link. I also tried putting
link="file"
in the shortcode or the markup and neither made the images clickable. Could you assist with the best way to take care of this?Thanks.
- The topic ‘Linking Images to Full Image File’ is closed to new replies.