Viewing 1 reply thread
You must be logged in to reply to this topic.
Hi!
Would just like to ask how we can update the social links on team members’ profile to open into new tab. I tried searching and seems like there’s no option. Even under edit page. Thanks!
*Also noticed on other elements where there’s a custom link field. There’s no way to have it open on a new tab.
Hello,
Yes, there is no option to select if you’ll have a link open in new tab or not. By default the links open in the same page. To change that you need to edit theme files. Please go to file functions.php and find this block:
function codeless_team_socials( ){
$list = codeless_get_team_social_list();
$output = '';
if( empty($list) )
return;
foreach($list as $social){
$link = codeless_get_meta( $social['id'] . '_link', '', get_the_ID());
if( $link != '' ){
$output .= '<a href="'.esc_url( $link ).'"><i class="'.esc_attr( $social['icon'] ).'"></i></a>';
}
}
return $output;
}
Edit this line: $output .= '<a href="'.esc_url( $link ).'"><i class="'.esc_attr( $social['icon'] ).'"></i></a>';
To this:
$output .= '<a href="'.esc_url( $link ).'" target="_blank"><i class="'.esc_attr( $social['icon'] ).'"></i></a>';
Let us know what other changes you want to do.
Best regards!
You must be logged in to reply to this topic.