Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Tweaks

Any way to make the thumbnail non-clickable?

(7 posts) (3 voices)
  • Started 11 months ago by Jimmy
  • Latest reply from Jimmy
  • Possible Solutions (Related Topics):
    1. Hiding thumbnail in fancy5
    2. eStore - Thumbnail size with search shortcode
    3. fancy display #3 - change thumbnail to rectangle (for DVD covers)
    4. Additional Product Images Thumbnail Size
    5. eStore fancy 3 thumbnails not displaying properly

Tags:

  • fancy5
  1. Jimmy
    Member

    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

    Posted 11 months ago #
  2. wpCommerce
    Moderator

    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.'" />';
    Posted 11 months ago #
  3. amin007
    Key Master

    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.

    Posted 11 months ago #
  4. Jimmy
    Member

    Hey thanks very much for the help!

    I really appreciate it-
    Jimmy

    Posted 11 months ago #
  5. Jimmy
    Member

    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

    Posted 11 months ago #
  6. amin007
    Key Master

    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.

    Posted 11 months ago #
  7. Jimmy
    Member

    Thanks again for the help!

    That worked-

    Cheers!
    Jimmy

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin