Inicio Forum Theme Orbit Installation and Configuration Add target="_blank" to Social links Respuesta a: Add target="_blank" to Social links

#598

Pedro Pinto
Jefe de claves

Hello

You must use filter action orbit_render_social_items

In function.php child theme or function.php theme file or function.php plugin file. Put this code:

function add_blank_targe_social_icon( $output ) {

	$output = str_replace( 'href', 'target="_blank" href', $output );

	return $output;
}
add_filter( 'orbit_render_social_items', 'add_blank_targe_social_icon' );