Member skills(without percentage)

erikmom
Jan 10, 2018 12:09 PM 1 Answers General
Member Since Jan 2018
Subscribed Subscribe Not subscribe
Flag(0)
Hello there, For a website of mine I would like to use the Team plugin and I need to display some specialisations of each team member. The "member skills" looks like the feature that I would like to use, but I don't want to display the skills bar. With some custom css that is doable, but I also want to remove the percentage that is displayed after each skill. Since the percentage is appended without the use of a <span>, i'm unable to hide the percentage. Any suggestions? Thanks
2 Subscribers
Submit Answer
Please login to submit answer.

1 Answers
Sort By:
Best Answer
0
PickPlugins
Jan 10, 2018
Flag(0)

Welcome to our forum.

You can hide skill from settings, and then you can filter any item via filter hooks.

View post on imgur.com

there is some filter hooks available for filter team members HTML item.

Filter hooks

Here is the code might help you display skill name under team member content. please add following code to your theme functions.php file

 

add_filter('team_grid_filter_content', 'team_grid_filter_content_skill');

function team_grid_filter_content_skill($skill_html){

  $team_member_skill = get_post_meta(get_the_ID(), 'team_member_skill', true );

  $skill_html .= '<div class="skills">';

  foreach($team_member_skill as $skill_key=>$skill_info){

      if(!empty($skill_info['name']))
        $skill_html .= '<span class="skill">'.$skill_info['name'].'</span>, ';
    }

  $skill_html .= '</div>';


    return $skill_html;
}

 

 

 

Sign in to Reply
Replying as Submit