Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Fancy10 Lightbox First Image Linking
Tagged: fancy10, first image url, lightbox, WP eStore
- This topic has 4 replies, 2 voices, and was last updated 12 years, 9 months ago by Zain.
-
AuthorPosts
-
February 7, 2012 at 1:53 pm #5500ZainParticipant
Hi,
I’m currently using the Fancy10 shortcode (
[wp_eStore_fancy10 id=2]
) to display a main image and thumbnails underneath, however I’ve run into a problem with the Lightbox not linking to the first image.The first lightbox image is linking to the “Thumbnail Target URL” instead of the “Thumbnail Image URL” (i.e. the image is linking to the page itself, instead of displaying the image with the Lightbox effect).
See here:
http://www.themaverickshop.com/childrens-books/the-fearsome-beastie/
(click on the first image and you’ll get back to the same page!)
Now, I realise that I am using the “Thumbnail Target URL”. This is because I want the thumbnail image to be a link to the product page when the category shortcode is used (i.e.
[wp_eStore_category_products_fancy id=1 style=3 order=1]
). This is purposeful, see here:http://www.themaverickshop.com/childrens-books/
(clicking on the thumbnail takes you to the right location!)
How can I make the first image in Fancy10 display the image and not keep going round in circles? Is there a file that can be changed? It makes no sense that Fancy10 links to itself, rather than the image… :$
Thanks in advance.
Cheers,
Zain
February 7, 2012 at 11:29 pm #41719adminKeymasterIf you have specified a value in the “Thumbnail Target URL” field then it can’t link to the thumbnail image any more. If you want to use the image to lightbox then leave the “Thumbnail Target URL” field empty and use the “Product Page URL” field which will make the product name/title link to the product page.
February 8, 2012 at 7:30 am #41720ZainParticipantHi Admin,
That’s what I thought would happen… although this now means that the “Product Categories” will now display the picture in the Lightbox when clicked on, rather than take you through to the product details page. That’s not really the desired functionality for the Categories page.
Surely the Fancy10 output is designed to always appear on a product details page? It makes no sense that the image links to the page it’s already on and loops round. This could make it confusing for a site visitor.
Is there a way of tweaking the code in the Extra Shortcodes plugin to use the “Thumbnail Target URL”, rather than the “Product Page URL” for Fancy10?
Cheers,
Zain
February 9, 2012 at 1:51 am #41721adminKeymasterFebruary 11, 2012 at 1:56 am #41722ZainParticipantHi,
Thanks for the very info on how to customise displays using shortcodes. This is very useful.
Have you considered taking the idea one step further and creating code “templates”? The basic idea is that there’s a directory with sub-directories containing all the template files for the various layouts (e.g. default folder, fancy1 folder etc.). These templates can then be customised to suit the site layout.
This idea is actually taken from John Godley’s “Sniplets” plugin. In this plugin, it’s possible to copy the Sniplet plugin default template folder and make a copy of it in the Theme directory. The plugin then checks the Theme folder first for templates before using the plugin default template files. The major advantage is that this way the template files are never overwritten with any upgrades made in the core. It also allows a lot of flexibility in terms of building a precise layout.
Anyway… that’s just an idea that you guys may want to consider. It would mean not having to build any more “fancy” templates but instead giving more control to the site Developer.
In theory, you could maybe get users to submit additional templates. Or what about a place where people can create templates for sale? I wonder if there’s a good plugin that could be used to sell these template files as downloadable products… Oh wait, there’s this store plugin I know of called…
Cheers,
Zain
-
AuthorPosts
- You must be logged in to reply to this topic.