Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23768

    Hi I was wondering if there is a way to use the image in media elements so that when they click on the image it opens in a new tab.

    Thank you.

    #121089

    You’d need to modify the shortcode file. Open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesimage.php and replace

    $output.= "<a href='{$link}' class='avia_image ".$meta['el_class'].$this->class_by_arguments('align' ,$atts, true)."'><img class='avia_image {$class}' src='{$src}' alt='{$alt}' title='{$title}' /></a>";

    with

    $output.= "<a href='{$link}' target='_blank' class='avia_image ".$meta['el_class'].$this->class_by_arguments('align' ,$atts, true)."'><img class='avia_image {$class}' src='{$src}' alt='{$alt}' title='{$title}' /></a>";

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Avia Layout Builder – target='_blank' image’ is closed to new replies.