• Resolved ccaballero

    (@ccballero)


    Hi! The Details table on my Event pages lists the League and Season, but I don’t want or need to display those. The Event Options in the SportsPress settings has a Details section where I can check what to display in that table, but the Season and League aren’t there for me to un-check. How do I stop it from displaying those things?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @ccballero

    URL?

    Thread Starter ccaballero

    (@ccballero)

    Hi! The site is in development so I can’t post a link, but here’s an example of an event page on one of the SportsPress demo sites that shows the Details table with the Season and League listed: https://demo.themeboy.com/rookie-plus-soccer/event/1487/

    Here’s a screenshot of the Details options under the Events tab in the SportsPress Settings, showing that those are not options to uncheck: https://ibb.co/VmnycJH

    I can only hide them by just not putting them in the event, which does not seem like the best long term solution.

    • This reply was modified 4 years, 9 months ago by ccaballero.

    @ccballero

    You can edit the template.
    Copy this file :
    /wp-content/plugins/sportspress/templates/event-details.php
    to :
    /wp-content/themes/rookie-child/sportspress/event-details.php

    And just comment out the array in the for loop .
    On Line 37, change this :
    $data[ $obj->labels->singular_name ] = $term->name;
    to this :
    // remove columns $data[ $obj->labels->singular_name ] = $term->name;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t hide Season or League in Event Details’ is closed to new replies.