Home › Forums › Themes Support › Claue › Fix Product Gallery At Window When Scrolling
- This topic has 7 replies, 2 voices, and was last updated 5 years, 1 month ago by Harry.
-
AuthorPosts
-
-
October 17, 2019 at 2:52 am #34152
HI Harry,
Is there a quick way to fixate the gallery at the top of the page while scrolling? Similar to Amazon.de “https://www.amazon.de/dp/B07VWV4MM9/” (make screen small so the text will get displayed very long and then scroll)
Or is this javascript and complicated?
Thank you,
Florian
Attachments:
You must be logged in to view attached files. -
October 17, 2019 at 7:44 am #34154
Hi,
Please copy file layout-1.php from claue > core > libraries > vendors > woocommerce > templates > extras > single to claue-child > woocommerce > extras > single
and add class to line 59 “jas-sidebar-sticky”
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 17, 2019 at 7:21 pm #34164
Hi Harry,
Thank you.
Did it but it doesn’t get displayed properly: see here: https://www.fashionchingu.com/upstroke/kpop-fashion/itzy-fashion/black-one-piece-jumpsuit-chaeryeong-itzy/
Also tried it without any additional CSS
Login credentials same as previous mentioned.
Thank you.
-
October 17, 2019 at 9:50 pm #34165
Hi,
I changed code it now ok.
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 31, 2019 at 5:17 am #34342
Hi Harry I got it that the main picture is now sticky and the gallery next to it as well. But the sticky part is set on the height of the main picture – so when the visitor scrools down and a picture has not the height as the gallery at the left side has, then, the gallery on the left side lays over the content below.
Just ignore the errors in the screenshot – these are from elsewhere.
Attachments:
You must be logged in to view attached files. -
October 31, 2019 at 8:30 am #34348
Hi Florian,
Please copy file product-image.php from claue > core > libraries > vendors > woocommerce > templates > single-product to claue-child > woocommerce > single-product and remove code
"adaptiveHeight":true,
in line 46
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 1, 2019 at 4:34 pm #34360
-
November 1, 2019 at 6:18 pm #34363
Hi,
I’m sorry it auto get height base on product image height so can’t vertical image to middle.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.