Slider element works only in the first sub-tab

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme February 04, 2019
Login to reply
Kelly R Support Agent
5 years ago
Resolved.
Martina Giudice
5 years ago

Perfect! 

Thanks! :D

Kelly R Support Agent
5 years ago

We will fix it in next version. So you don't worry about it when updating Travelo theme.

Regards, C-Themes

Martina Giudice
5 years ago

Hello,

it works!

Thank you so much :D

If you update the theme I need to insert again the code in the file, right? If i put the changed file in the same location in the child-theme it doesn't work so I've insered it in the parent theme.

Thanks

Kelly R Support Agent
5 years ago

Hi,

Please add following code in bottom of /js/theme-scripts.js file.

tjq('body').on( 'click', '.vc_tta-tab', function() {

 var contentId = tjq(this).find('a').attr("href");
 setInterval(function() {
  if (tjq(contentId).find(".image-carousel").length > 0) { 
   displayImageCarousel(tjq(contentId).find(".image-carousel"));
  }
  if (tjq(contentId).find(".photo-gallery").length > 0) {
   displayPhotoGallery(tjq(contentId).find(".photo-gallery"));
  }
  if (tjq(contentId).find(".testimonial").length > 0) {
   displayTestimonials();
  }
  tjq(window).trigger('resize'); 
 }, 100 );
});

Regards, C-Themes

Martina Giudice commented privately
Martina Giudice
5 years ago

Hi developer team! 

I bought your Travelo theme and I'm taking my first steps with settings...

I have a problem with tabs and elements inside it: your Slider element by Soap Theme works only when placed in the first sub-tab of the TAB element 

This is the page where I'm testing it: http://www.siapwhitelabeltest.com/sitiviaggi/tour/tour-di-prova/   If you need I can provide user and pass for backend.

As you can see the other elements in the tabs like simple images or revolution slider element works in all tabs, the only one that doesn't work is the Slider element. 

Is it possible to fix this problem? What can I do? I'd prefer using this element instead of others to keep the photo selection in the same page.

I'm using the last version of Wordpress, theme and plugins and I tried Firefox and Chrome with same results. I've installed a child theme with some graphic personalizations but if I use the parent theme and not the child one the result is the same: slider element missing in tabs... I've also tried to re-download and install the parent theme but nothing, same results.

Thanks in advance