My original image is the same size as the thumbnail so I don't want people to be able to click it expecting to see a larger version.
How would I remove the link or make the thumbnail non-clickable?
Thanks very much,
Jimmy
My original image is the same size as the thumbnail so I don't want people to be able to click it expecting to see a larger version.
How would I remove the link or make the thumbnail non-clickable?
Thanks very much,
Jimmy
You will have to tweak the code to do that.
For Fancy1 and Fancy2 Display
Open the "eStore_button_display_helper.php" file and look for the following line:
$output .= '<a href="'.$ret_product->thumbnail_url.'" rel="lightbox" title="'.$ret_product->name.'"><img class="thumb-image" src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a>';
Just take the link out so it is just a plain image. Basically make the above line look like the following:
$output .= '<img class="thumb-image" src="'.$thumb_img.'" alt="'.$ret_product->name.'" />';
For Rest of the Fancy Displays
The rest of the fancy displays come from the extra shortcodes plugin so you need to modify that plugin. Open the "eStore_extra_product_display_helper.php" file from the eStore extra shortcodes plugin and search for the following line of code:
$output .= '<div id="lightbox"><a href="'.$ret_product->thumbnail_url.'" rel="lightbox" title="'.$ret_product->name.'"><img src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a></div>';
Once you find it change it to the following:
$output .= '<img src="'.$thumb_img.'" alt="'.$ret_product->name.'" />';You can specify a URL value (the URL of this product page) in the "Thumbnail Target URL" field which will make it go to that product page and not the image itself. Let me know if that helps.
Hey thanks very much for the help!
I really appreciate it-
Jimmy
Doesn't seem to be working-
I changed the line in "eStore_button_display_helper.php" to this:
$output .= '<img class="thumb-image" src="'.$thumb_img.'" alt="'.$ret_product->name.'" />';
I'm still able to click the image.
I even cleared my cache and disabled/re-enabled the plugin.
The line that I changed is still there without the link part...
one thing I noticed:
At the top of the wordpress plugin editor it reads:
Editing wp-cart-for-digital-products/eStore_button_display_helper.php (inactive)
Does that (inactive) mean anything?
Here's a link to one of my product pages: http://thingswitheyes.com/penguin-erasers
Thanks again,
Jimmy
You are using fancy5 which comes from the extra shortcodes plugin so you need to modify a file from that plugin. I have updated wpCommerce's post to cover both scenerios. Please take a look at the 2nd post on this thread.
Thanks again for the help!
That worked-
Cheers!
Jimmy
You must log in to post.