Can you show me the PHP for this?
Thanks!
Hi mgma,
Can you give us a bit more reference on where you want this to happen?
Regards,
Devin
Sure… these testimonial links… company name… need to open in a new window. Bottom of this page…
Hi,
Open config-templatebuilder > avia-shortcodes > testimonials.php, find this code
//final output
$output .= "<div class='avia-testimonial {$class}'>";
if($grid) $output .= $avatar;
$output .= "<div class='avia-testimonial-content'>";
$output .= wpautop(ShortcodeHelper::avia_remove_autop($content));
$output .= "</div>";
$output .= "<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
if(!$grid) $output .= $avatar;
$output .= "<div class='avia-testimonial-meta-mini'>";
if($name) $output .= "<strong class='avia-testimonial-name'>{$name}</strong>";
if($subtitle) $output .= "<span class='avia-testimonial-subtitle'>{$subtitle}</span>";
if($link) $output .= " – <a class='avia-testimonial-link' href='{$link}'>{$linktext}</a>";
$output .= "</div>";
$output .= "</div>";
$output .= "</div>";
Replace it with
//final output
$output .= "<div class='avia-testimonial {$class}'>";
if($grid) $output .= $avatar;
$output .= "<div class='avia-testimonial-content'>";
$output .= wpautop(ShortcodeHelper::avia_remove_autop($content));
$output .= "</div>";
$output .= "<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
if(!$grid) $output .= $avatar;
$output .= "<div class='avia-testimonial-meta-mini'>";
if($name) $output .= "<strong class='avia-testimonial-name'>{$name}</strong>";
if($subtitle) $output .= "<span class='avia-testimonial-subtitle'>{$subtitle}</span>";
if($link) $output .= " – <a class='avia-testimonial-link' target='_blank' href='{$link}'>{$linktext}</a>";
$output .= "</div>";
$output .= "</div>";
$output .= "</div>";
Cheers,
Ismael