This code modification enables you to modify the default Infinity Pro team class setting for displaying team members on the team page from one-fourth to one-half, one-third or one-sixth.
Find this function around lines 124 – 126 in the page_team.php file of the Infinity Pro child theme and change it from this :
function infinity_team_class( $classes ) {
global $wp_query;
$classes[] = 'one-fourth';
if( 0 == $wp_query->current_post % 4 ) {
$classes[] = 'first';
}
return $classes;
}
To this :
You can also use one-sixth for 6 columns.
Leave a Reply