• Resolved sylo18

    (@sylo18)


    Hey
    On an individual player profile, you can show League Totals and Career Totals on the statistics.

    I just want to show Career Totals. So when I turn off league, via Sortspress – Settings – Player… The player profile header now only shows the totals for the latest season.

    See image here: https://ibb.co/LR5r7WF

    You can see he has played 3 games over 2 seasons.

    but the totals at the top only show 2 games (from the latest season)

    If I turn back on “show leagues” in settings, the header then shows the correct total.

    is there a way to fix this?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • I believe this is a theme related issue and how Alchemist pulls the data (I use the same theme) – I know there are certain things that have to be done a little differently for certain totals to appear. But the header data may be pulling “performances” rather than actual “statistics”. So it’s pulling data from actual games the player attended/played that you have recorded in full rather than just stats you added to the career totals.

    Thread Starter sylo18

    (@sylo18)

    Yeah it definitely seems to be some sort of coding mistake.
    It shows the correct amount in the header when you also show “league” in the full stats. See here:
    https://ibb.co/q7pwLp0
    Compared to when “league” is hidden in settings:
    https://ibb.co/LR5r7WF

    So as soon as you hide “league”, the header info is wrong.

    I’ve found the php page in the theme editor (Alchemists: player-statistics-league.php (sportspress/player-statistics-league.php)), but unfortunately its not clear which bit of code needs to be modified to either visually hide “league” or fix the code to show correctly in the header.

    Any help would be greatly appreciated.

    Your best bet would be to contact support for the theme in question and see if they can’t change that in a future update for the Alchemist theme.

    I wish I could code myself but what would need to be done is unfortunately beyond my capabilities.

    Thread Starter sylo18

    (@sylo18)

    Thanks

    I don’t know if this will work for everyone, but I was able to add some CSS code to hide the section I wanted:

    .sp-template-player-statistics {
    display: block;
    }

    .sp-template-player-statistics:first-of-type {
    display: none;
    }

    Hope that helps anyone searching for an answer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show only Career Total on Player Profile’ is closed to new replies.