• Hi,
    I’m trying to get the team Logo from S&S Teams to be displayed next to the team Name in the roster shortcode.

    Is there any possibility to make this happen?

    I tried to add the logo in taxonomy-team.php like so
    <header class=”page-header page-header_<?php echo $team_slug ?>”>
    <?php echo “<h1 class=’team-head-title team-head-title_$team_slug’>$team_name</h1>”; ?>
    <?php echo mstw_tr_build_profile_logo( $team_slug ) ?>
    </header>

    but the logo didn’t show up.

    Can you help 😉

    https://wordpress.org/plugins/team-rosters/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi mackon3,
    If you are talking about the ROSTER TABLES, something like this maybe, then you can either use the Settings Screen or the short code parameters.
    Regards,
    -Mark

    Thread Starter mackon3

    (@mackon3)

    No this is easy to accomplish.

    What I want to do is to top a player listing table with the team symbol.

    Like this:
    _________________________________
    team Name LOGO |

    player 1
    player 2
    payer 3

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Oh, okay. If I now understand correctly, this has nothing to to with the taxonomy template. You can do something like this for the single player profiles.

    For the table itself, it appears you are talking about a header/title. There is no built-in capability to add a logo to a header within the shortcode. The idea being that you can add whatever you want on your page before adding the shortcode. I’ll add that to the list for the next version. It might also be nice to have a helper function that, would return an <img> of the team logo when given a player or a team slug.

    Regards,
    -Mark

    Thread Starter mackon3

    (@mackon3)

    My solution so far is an alteration of the file mstw-tr-tam-rosster.php in line 123

    $output .= $title_h1 . $team_name ;
    $output .= '<div style="float:right">'.mstw_tr_build_profile_logo($team). '</div>';
    $output .= '</h1>';

    but only the default logo is showing.

    Why doesn’t the function return the logo from the S&S team logo?

    Am I missing something here?

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi mackon3,
    Well done!

    On this forum, I support bugs and (simple) documentation questions (“RTFM” or “oops, the FM is not correct” types). I do not support customization of the code. Not only is that outside the scope of these forums, but you have to potential to create a maintenance tail chase for yourself across versions.

    So if you want help modifying the code, please register for MSTW Gold Support. Not only might I be able to point you in the right direction, but we can usually (but not always) do it in a way that will survive in future builds.

    -Mark

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to display team Logo above team roster’ is closed to new replies.