Testimonials start with space due to prepended newline character.
-
If you want to use CSS to change the style of quotes, e.g. add some quotation marks, you will figure out that the default templates prepend a superfluous space character (” “) at the beginning of the quote. The reason for that is a newline character after the div definition, which will be removed certain tools.
templates/default/loop-testimonial.php line 31
and
templates/default/loop-testimonial.php line 36
resp.Temporary fix, please consider to update default templates correspondingly.
old:
echo "<div class=\"testimonial_rotator_quote\">\n";
new:
echo "<div class=\"testimonial_rotator_quote\">";
Cheers,
Matthieu
- The topic ‘Testimonials start with space due to prepended newline character.’ is closed to new replies.