Home › Forums › Themes Support › Gecko › Image caption in Product detail view
- This topic has 18 replies, 3 voices, and was last updated 7 years, 8 months ago by ThijsKempers.
-
AuthorPosts
-
-
May 10, 2017 at 1:50 am #3875
Hi,
I want to show the image caption in the product detail view, how do I do this?
Thanks in forward,
Thijs Kempers
-
May 10, 2017 at 6:31 pm #3896
Hi,
Sorry for late reply.
On new version of WooCommerce 3.0.x they change the way to display caption of image on product detail lightbox. We are finding solution and improve in our theme soon.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 10, 2017 at 11:11 pm #3899
Okay, and if I want to show the caption underneath the product detail lightbox, how does that work?
Thanks in forward.
-
May 11, 2017 at 9:13 am #3904
Yes, we will implement caption under image on light box.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 11, 2017 at 3:34 pm #3907
No I mean that I need it now. The site has to go live in a week.
Can’t we do something like this screenshot?
And how do I do that?
-
May 11, 2017 at 3:52 pm #3908
I’m sorry WooCommere don’t support show caption like your screen shot.
In past WooCommerce support show caption below image when open in light box
https://monosnap.com/file/KND3xIDluAIIhvhabbh28Qwg2dcANP#
On new version WooCommerce 3.0.x they change this function, we finding the way to make it appear again.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 12, 2017 at 12:21 am #3928
Is there no option to show the caption somewhere?
-
May 12, 2017 at 12:41 am #3929
Yes, no option to display caption some where.
best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 12, 2017 at 3:12 am #3932
Ah okay, where can I find the code of the selected product image? The selected picture of the gallery.
Can you tell me the path? I assume it is’nt the one in: plugins/woocommerce/templates/single-product/product-image.php
-
May 12, 2017 at 3:13 am #3933
Can’t I display the description?
-
May 12, 2017 at 7:46 am #3937
Hi,
The code for the selected product image is plugins/woocommerce/templates/single-product/product-image.php
If you want edit this we recommend copy file to path gecko-child > /woocommerce/single-product/product-image.php.
Now WooCommerce move the caption to js file
https://github.com/woocommerce/woocommerce/issues/14218.
It hard to control like code in /woocommerce/templates/single-product/product-image.php like prev version 2.6.x
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 12, 2017 at 1:43 pm #3949
And there is no possible way to at some text to the short description of the product that’s connected with the image? So I can link the selected image to the text. I only have to show the color code of the product, that’s manually filled in.
-
May 12, 2017 at 3:41 pm #3952
Which JS file do I need to look for? What I see is that they can put the description in a title on hover, so it’s possible to tweak that function in a way to show the description under the image in fullscreen?
-
May 12, 2017 at 4:01 pm #3953
You can find js code in WooCommerce > Assets > js > PhotoSwipe > photoswipe-ui-default.js.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 12, 2017 at 4:18 pm #3954
Is there a way to show any attribute of the selected image? I don’t care if it’s the description, alt text, caption or title. I just NEED to show a variable linked to the image entered in the backend of the wordpress.
-
May 12, 2017 at 4:21 pm #3955
Is there a way to show any attribute of the selected image? I don’t care if it’s the description, alt text, caption or title. I just NEED to show a variable linked to the image entered in the backend of the wordpress.
See image
- This reply was modified 7 years, 8 months ago by ThijsKempers.
-
May 12, 2017 at 10:37 pm #3971
Hi Thijs Kempers,
I have just updated the lightbox script of WC 3.x on your site, the image will be show title of image on below, please check
Cheers,
Foster
-
May 12, 2017 at 11:12 pm #3978
Hi Thijs Kempers, I have just updated the lightbox script of WC 3.x on your site, the image will be show title of image on below, please check Cheers, Foster
I don’t see it? Or am i looking wrong?
- This reply was modified 7 years, 8 months ago by ThijsKempers.
-
May 12, 2017 at 11:16 pm #3981
Ah got it, thanks!
-
-
AuthorPosts
You must be logged in to reply to this topic.