-
-
Hello,
I have two problems to fix in testimonials carousel at home. The first one is the speed, the second one is the comma after names. I have already followed instructions found in this forum but they did not work in both problems.
1- SPEED – I have already tried to do this:Find the lines:
function testimonialsCarousel(){"use strict";
$('.testimonial_carousel').each(function(){
var $self = $(this);
$(this).carouFredSel({
auto: true,
scroll: { items : 1, fx: 'fade' },
prev : {
button : $self.parent('.testimonial_carousel_element').find('.prev')
},
and replace them with:function testimonialsCarousel(){
"use strict";
$('.testimonial_carousel').each(function(){
var $self = $(this);
$(this).carouFredSel({
auto: true,
scroll: { items : 1, fx: 'fade', duration:200 },//add here the duration of a testimon.
prev : {
button : $self.parent('.testimonial_carousel_element').find('.prev')
},2- COMMA AFTER NAMES - I have already tried this:
To remove the coma, please go to file vc_templates\testimonial_carousel.php and find this line:
$output .= '<h6>'.esc_html(get_the_title()).', </h6><span class="position"> '.esc_attr($cl_redata['staff_position']).'</span>';<br />
Replace with this:</span><br/>$output .= '<h6>'.esc_html(get_the_title()).' </h6><span class="position"> '.esc_attr($cl_redata['staff_position']).'</span>';
Can you help me to fix these please?
Best regards,
Michele Medeiros
-
Hello,
You must have copied them wrong. Even a comma left behind causes the code to fail. Please send us your wp credentails in a private reply so we can check these up for you.
PS: In later replies please see this article on how to prevent the html tags from messing up the text.
Best regards!
-
-
hello,
The edits in the example are made to testimonials carousel, while you have the testimonial cycle. Please find this function:
$('.testimonial_cycle').each(function(){
in file js\main.js and make the same changes as the example above. (add attributeduration:200
).
I can not access main.js file from wordpress so i can’t do it for you. But i could remove the comma, by editing file testimonials_cycle.php like explained above.Best regards!
-
Hello! I have tried what toy said but it did not word yet. Please can you check if there is someting wrrrong in the code below? :-(
—————————- Testimonial Cycle —————————– */
function testimonialsCycle(){
“use strict”;$(‘.testimonial_cycle’).each(function(){
var $self = $(this);
var container_width = $self.parents(‘.wpb_wrapper’).first().width();
$(‘.item’, $self).width(container_width+’px’);$self.carouFredSel({
auto: true,
scroll: { items : 1, fx: ‘fade’, duration:200 },,//add here the duration of a testimon.
prev : {
button : $self.parent(‘.testimonial_carousel_element’).find(‘.prev’)});
});
} -
Hello,
Please try to remove the comment, this->’ ,,//add here the duration of a testimon.’ the commas may be messing the code. If the issue persists, send us your ftp credentials in a private reply, so i can do it for you.
Best regards!
-
-
Hello,
You have mistakes in your main.js file. The testimonial carousel function was not complete. I edited it and the testimonials cycle function, however that mus be something else since the testimonial in web page still doesn’t work. did you made any other changes to this file? Please replace it with an original copy from your downloaded theme folder. Then find this code:
function testimonialsCycle(){ "use strict"; $('.testimonial_cycle').each(function(){ var $self = $(this); var container_width = $self.parents('.wpb_wrapper').first().width(); $('.item', $self).width(container_width+'px'); $self.carouFredSel({ auto: true, scroll: { items : 1, fx: 'fade' }, }); }); }
and replace with this:
function testimonialsCycle(){ "use strict"; $('.testimonial_cycle').each(function(){ var $self = $(this); var container_width = $self.parents('.wpb_wrapper').first().width(); $('.item', $self).width(container_width+'px'); $self.carouFredSel({ auto: true, scroll: { items : 1, fx: 'fade' , duration:2000 }, }); }); }
Let us know.
Best regards!
-
Hello. I had not changed other codes, but I follow your instructions and it did not work yet.
Best regards,
Michele
-
Hello,
You still have errors in your site. The testimonials are not displayed properly. They are supposed to slide(either fast or slow), you have them showed in a column. Please update theme to it’s latest version. We strongly recommend you to keep a backup of all files before performing an update.
Let us know.Best regards!
-
Ok, I´ll do that. Where can I update to theme´s latest version?
Best regards,
-
Hello. I just have updated the theme and followed your instructions, but the speed of testimonial cycle has not changed and now the comma after the names is back (I have followed the instructions above to delete comma but it did not work either).
Best regards,
Michele
-
Please Codeless team, I really need your help. My deadline to finish the site is ending and I still have several things to fix. :-(
-
Hello,
Sorry for the late reply.
I see you have vc_template\testimonials_cycle.php and removed the comma after the name. I see you have already added the duration time.
Let us know if you need further help.Best regards!
-
Yes, I did it but the speed of testimonial cycle is still very fast, it is not possible read each one of the testimonials. What Can I do?
-
Actually, the speed is still the same, it did not change with the new code…:-(
-
Hello,
You only need to change the value of the duration. I already changed it to 20000 and now it’s very slow. Change it back to the value you want.
Best regards!
-
Hello! The speed is ok on mobile phone but it is still the same (very fast) on computers (I tested in 3 different computers). Do you know what can be happening?
Best regards,
Michele
-
Hi Codeless Team, I am waiting for your reply. Thanks in advance.
-
You must be logged in to reply to this topic.