Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23700

    Can you show me the PHP for this?

    Thanks!

    #120821

    Hi mgma,

    Can you give us a bit more reference on where you want this to happen?

    Regards,

    Devin

    #120822

    Sure… these testimonial links… company name… need to open in a new window. Bottom of this page…

    http://mcalpin.net/2013/brian-mcalpin/

    #120823

    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 .= " &ndash; <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 .= " &ndash; <a class='avia-testimonial-link' target='_blank' href='{$link}'>{$linktext}</a>";
    $output .= "</div>";
    $output .= "</div>";
    $output .= "</div>";

    Cheers,

    Ismael

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.