This solution guides you to remove or add new social links found on the Team page by hovering on the team member images.
In this guide, we'll be adding Vimeo social icon as a demonstration.
Files modified:
/wp-content/themes/rhythm/admin/metaboxes/team.php
/wp-content/plugins/rhythm-addons/shortcodes/rs_team.php
team.php
Remove or append new social links by following the available array structure like so:
array(
'id' => 'team-vimeo',
'type' => 'text',
'title' => __('Vimeo', 'rhythm'),
'subtitle' => __('Social site URL.', 'rhythm'),
),
rs_team.php
Get the meta values of the social link by adding the following line, following the already available code ( line ±47 ):
The parameter of ts_get_post_opt() is the id set previously in team.php.
$team_vimeo = ts_get_post_opt('team-vimeo');
Then add the HTML code of the social link on line ±66, following the already available code, like so:
To see the available icon classes, consult the Font Awesome Icons List.
<a href="<?php echo esc_url($team_vimeo); ?>" target="_blank"><i class="fa fa-vimeo-square"></i></a>