Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Additional product picture in lightbox – first image is the thumbnail

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Additional product picture in lightbox – first image is the thumbnail

Tagged: lightbox, thumbnail, Tweaks, WP eStore

  • This topic has 3 replies, 2 voices, and was last updated 6 years, 4 months ago by admin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 30, 2016 at 11:52 pm #13793
    barracuda
    Member

    Hi there

    I’ve uploaded the thumbnail files via the WP eStore product creator, and I’m using a fancy theme with lightbox. This works great, however when I click on the product’s thumbnail, the first image that opens in the lightbox is the thumbnail. What I’d like, is for the thumbnail not to open in lightbox at all, only the larger version of the image. This file is located in a folder on the web server. Is there any way to achieve this?

    Thanks in advance.

    Page URL: [http://www.lvvta.org.nz/shop/]

    October 31, 2016 at 11:03 pm #74487
    admin
    Keymaster

    The fancy display template will show the thumbnail and any other additional image (all of them) in the lightbox.

    The following post will explain more on this topic:

    https://support.tipsandtricks-hq.com/forums/topic/can-i-put-multiple-images-and-videos-in-the-fancy-display

    November 7, 2016 at 3:20 am #74488
    barracuda
    Member

    Thanks. Can I somehow set this so that it doesn’t show the thumbnail in the lightbox?

    November 7, 2016 at 11:06 pm #74489
    admin
    Keymaster

    Yes, you can apply a small tweak to turn off lightbox for the thumbnail image.

    Add the following PHP code in your theme’s functions.php file:

    add_filter('eStore_product_thumbnail_rel', 'override_rel_for_thumbnail');
    function override_rel_for_thumbnail($rel){
    return '';
    }

    The above code will override the “rel” parameters value which will turn off the lightbox for the thumbnail image.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ