Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @brian and @roch,

    I was having the same issue as @dknyrob. I tried the custom CSS in this topic and custom CSS found in similar topics. Unfortunately, the page never changed. I was going to modify page.php, as suggested, but I wasn’t sure what specifically needed to be removed. I went as far as deleting everything under the “primary” div, though, but that didn’t seem to do a thing.

    Last week, I inspected the page element and found the image was being loaded as part of <header class=”entry-header”>. I deleted every instance of “entry-header” I could find and even that didn’t work.

    As I was typing a reply to this thread to ask for help, I was also double-checking all the changes I made. I noticed under SportsPress > Settings > Players, the Template was set to Homepage. On a whim, I changed it to Default Template. That, alone, removed the larger photo and replaced it with the player’s number and name.

    Perhaps that will work for others, as well?

    -Twizz

    Thread Starter twizz

    (@twizz)

    Hey Roch,

    I found the problem.

    The variable ‘avg’ was configured in both the Player Performance AND Player Statistic sections. Since the actual equation used to compute ‘avg’ is in the Statistic section, I removed the variable from the Performance section. I immediately checked the player’s page and everything appears to be functioning as expected, now.

    I realized where the conflict was after looking at /wp-content/plugins/sportspress/presets/team-sports/softball.json and noticing AVG didn’t exist in the “performance” array. Although I can’t remember doing so, I must have created the Player Performance ‘avg’ variable at some point.

    Thanks for trying to help me solve this!
    -Twizz

    Thread Starter twizz

    (@twizz)

    The batting average is built into the theme and the average should include 3 decimal places. If I multiply by 100, that will change a .300 average to 30. I’ve been trying to search through the code to find the equation, but have come up empty handed. Do you know what file it’s in?

    -Twizz

    Thread Starter twizz

    (@twizz)

    Hey Roch,

    Please take a look at this link.

    Thanks,
    Twizz

Viewing 4 replies - 1 through 4 (of 4 total)