Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
May 23, 2013 at 6:09 am #23700
Can you show me the PHP for this?
Thanks!
May 23, 2013 at 12:55 pm #120821Hi mgma,
Can you give us a bit more reference on where you want this to happen?
Regards,
Devin
May 23, 2013 at 7:02 pm #120822Sure… these testimonial links… company name… need to open in a new window. Bottom of this page…
May 25, 2013 at 4:56 am #120823Hi,
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
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘Need the company names/links to open in a new window’ is closed to new replies.
