Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brian

    (@brianmiyaji)

    @dammert89 Yes, this is possible but you’ll need to create your own modified template to do this. See https://sportspresspro.com/docs/theme-integration-guide/

    Thread Starter dammert89

    (@dammert89)

    Okay. Came right. Put in a switch statement in player-list.php `foreach( $labels as $key => $label ):
    if ( $key !== ‘number’ && ( ! is_array( $columns ) || $key == ‘name’ || in_array( $key, $columns ) ) )
    switch ($label) {
    case “YC”:
    $output .= ‘<th class=”data-‘ . $key . ‘”><img src=”/wp-content/uploads/2015/04/icon_lc_yellow.png” alt=”YC” style=”width:80%”></th>’;
    break;
    case “RC”:
    $output .= ‘<th class=”data-‘ . $key . ‘”><img src=”/wp-content/uploads/2015/04/icon_lc_red.png” alt=”RC” style=”width:80%”></th>’;
    break;
    default:
    $output .= ‘<th class=”data-‘ . $key . ‘”>’. $label . ‘</th>’;
    }
    endforeach;
    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Player List – Icons?’ is closed to new replies.