Viewing 1 reply thread
You must be logged in to reply to this topic.
When adding a link to the media element, the ‘a-tag’ automatically adds a target=_blank and thus opens the link in a new tab. I would like the link to open in the same tab by removing the target=_blank. Is this possible?
Hello,
You have to edit the file: wp-content/themes/vc_content/media.php and edit the lines:
$output .= '<a href="'.$link.'" target="_blank"><img src="'.esc_url($image).'" alt="'.esc_attr__('Media', 'specular').'" class="type_image animated fadeIn'.esc_attr($animation).' alignment_'.esc_attr($alignment).'" /></a>';
replace with:
$output .= '<a href="'.$link.'"><img src="'.esc_url($image).'" alt="'.esc_attr__('Media', 'specular').'" class="type_image animated fadeIn'.esc_attr($animation).' alignment_'.esc_attr($alignment).'" /></a>';
Regards!
You must be logged in to reply to this topic.