Your testimonial widget is broken?
-
You open a anchor tag and close it then display name and open another anchor tag and closes it again… Is this wrong?
In widgets/widgets/testimonial/tpl/simple.php
<div class="testimonial-image-wrapper"> <img src="<?php echo esc_url($instance['image']) ?>" /> </div> <div class="text"> <?php echo wpautop(wp_kses_post($instance['text'])) ?> <h5 class="testimonial-name"> <?php if(!empty($instance['url'])) : ?><a href="<?php echo esc_url($instance['url']) ?>"></a><?php endif ?> <?php echo esc_html($instance['name']) ?> <?php if(!empty($instance['url'])) : ?><a href="<?php echo esc_url($instance['url']) ?>"></a><?php endif ?> </h5> <small class="testimonial-location"><?php echo esc_html($instance['location']) ?></small> </div>Fix:
<div class="testimonial-image-wrapper"> <img src="<?php echo esc_url($instance['image']) ?>" /> </div> <div class="text"> <?php echo wpautop(wp_kses_post($instance['text'])) ?> <h5 class="testimonial-name"> <?php if(!empty($instance['url'])) : ?><a href="<?php echo esc_url($instance['url']) ?>"><?php endif ?> <?php echo esc_html($instance['name']) ?> <?php if(!empty($instance['url'])) : ?></a><?php endif ?> </h5> <small class="testimonial-location"><?php echo esc_html($instance['location']) ?></small> </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Your testimonial widget is broken?’ is closed to new replies.