Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

check JUX carousel - first slide is ever the second one

More
8 years 6 months ago #12988 by Alex
Hi JUX-team,

i have notice this issue already on many instances where i use your Carousel module, that on page load as first the second slide is active. On your demo page seems to be everithing ok.

Thanks in advance for helping.

Cheers
Alex

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #13130 by Alex
No one suggestion why this happans and how can be fixed?

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #13343 by Alex
Ok, I was lucky and have found the error:

In template file in line 50 and in line 67 $i == 1 should be changed to $i == 0:
Line 50: <li data-target="#myCarousel" data-slide-to="<?php echo $i;?>" class="<?php if ($i == 0) echo 'active'; ?>"></li>
Line 67: <div class="<?php if ($i == 0) echo 'active'; ?> item">

Array beginns with 0 and not with 1.

Please fix this in your code.

Cheers
Alex

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #13359 by Huyen Tran
Hi Alex.
Thanks you so much for your feedback to me again.
I will note it for my product.

Best Regards,
Huyen Tran

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.245 seconds
Powered by Kunena Forum