Home › Forums › WoodMart support forum › Always have 1 image per product – how to remove unnecessary scripts?
Always have 1 image per product – how to remove unnecessary scripts?
- This topic has 11 replies, 2 voices, and was last updated 7 years, 9 months ago by
Artem Temos.
-
AuthorPosts
-
February 4, 2018 at 4:34 am #37271
getimoParticipantHi,
how and which scripts do I need to deactivate to get rid of the scripts needed for the product image galery?
Thx!
February 4, 2018 at 11:41 am #37312
Artem TemosKeymasterHi,
You can set this option to disable carousel for the product images https://prnt.sc/i9wwu1
Regards
February 4, 2018 at 12:10 pm #37319
getimoParticipantIt’s already set to “Without”. However the draft functionality to swipe the main image is still available. Since I want to use only 1 image there must be unnecessary code for that which I want to get rid of.
Or am I missing something?
February 4, 2018 at 12:11 pm #37320
getimoParticipantI meant “drag functionality”.
PS: I can’t edit my posts anymore.
February 4, 2018 at 4:57 pm #37360
Artem TemosKeymasterTry to set to `Bottom (1 column) as shown on the screenshot https://prnt.sc/i9wwu1
Regards
February 4, 2018 at 6:05 pm #37385
getimoParticipantOk, I changed it to “Bottom (1 column). The drag functionality stills exists.
February 5, 2018 at 8:28 am #37460
Artem TemosKeymasterYes, this drag functionality still exists on mobile devices. To disable it completely, try to return “Without” value for that option and add this code snippet to the functions.php file in the child theme
function woodmart_is_main_product_images_carousel() { $images_carousel = false; return ( woodmart_get_opt('thums_position') == 'without' && $images_carousel ) ? true : woodmart_is_product_thumb_enabled(); }If it will not help, please provide us your FTP access so we can check it directly on your website.
February 8, 2018 at 10:35 am #38351
getimoParticipantIt seems that no modification to the child themes functions.php takes effect. Do I have to activate the functions.php child theme anywhere?
February 8, 2018 at 10:59 am #38364
Artem TemosKeymasterBut you didn’t change the option as we wrote prntscr.com/ibt5sa
February 8, 2018 at 11:01 am #38366
getimoParticipantYou are right, I was wrong!
Thank you nvery much, best support here!
SOLVED
February 8, 2018 at 11:01 am #38368
getimoParticipantOff-topic: why can’t we edit our posts anymore?
February 8, 2018 at 12:21 pm #38384
Artem TemosKeymasterWe will check why you can’t edit it. Thank you for the feedback.
-
AuthorPosts
Tagged: Gallery, image, performance, scripts
- You must be logged in to create new topics. Login / Register
