-
-
When adding testimonials, there is a title – which would be the person’s name. At the bottom, it says “position” and refers to the company name.
When completed there is a comma after the person’s name with an extra space between the name and the comma, which is improper.
1-How do I get rid of the comma?
2- How can I style the font size of the name and the size and color of the company they are from?
Thanks
-
Hello,
What type of testimonial are you using? Please go to file vc_templates/testimonial_carousel.php and find these lines:
$output .= '<h6>'.get_the_title().' '; if($c > 0) $output .= ',';
Edit to this:
$output .= '<h6>'.get_the_title().''; if($c > 0) $output .= ',';
If you want to remove the comma too, then delete the last comma inside the single quotes.
Let us know.Best regards!
-
2-To edit name and position style please add this code into your custom css box:
.testimonial_carousel .item .param h6 { font-size: 19px; color: #8d6dc4 !important; } .testimonial_carousel .item .param span.position { font-size: 20px; color: #8d6dc4 !important; }
Change the values to your wish.
Best regards!
-
Good morning,
Thank you for your response, however in #1, both of the strings of code are the same. I need to remove the comma that automatically gets added to the testimonial name (pare title). It is wrong to have a space after the name and before the comma, and it is also completely unnecessary of the person’s name and the company name are on two lines.
looking for a solid solution. thank you!
-
Hello,
Sorry if i misunderstood you. I though you wanted to remove the space before the comma. That’s what’s different in the two codes. The second one does not have the space (screenshot).
The name and position layout is a theme’s default style. If it does not fit your site’s style, then you can change it. In the same file vc_templates/testimonial_carousel.php find these lines:$output .= '<h6>'.get_the_title().' '; if($c > 0) $output .= ','; $output .= '</h6>'; $output .= '<span class="position"> '.$cl_redata['staff_position'].'</span>';
And replace with this:
$output .= '<h6>'.get_the_title().''; if($c > 0) $output .= ', '; $output .= '<span class="position"> '.$cl_redata['staff_position'].'</span>'; $output .= '</h6>';
Best regards!
- This reply was modified 7 years, 1 month ago by Mirela.
-
You must be logged in to reply to this topic.