• Resolved saryvo

    (@sariwo)


    The “Countdown” widget (widget) “is not displayed the start time of the match. Only the date is displayed. This error is recently, most likely after updating.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @sariwo ,

    It seems like the “start time” of the match was hidden four years ago with https://github.com/ThemeBoy/SportsPress/commit/e34bce157603b62c2051c1baa77ed972eb8b7319 .

    You can show it again following the below procedure:
    1. Copy the file countdown.php from /wp-content/plugins/SportsPress/templates/ to /wp-content/themes/your-child-theme/sportspress/.
    2. Replace line 179 from:
    echo wp_kses_post( get_the_time( get_option( 'date_format' ), $post ) );
    to:
    echo wp_kses_post( get_the_time( get_option( 'date_format' ), $post ) . ' ' . get_the_time( get_option( 'time_format' ), $post ) );

    Thanks,
    Savvas

    Thread Starter saryvo

    (@sariwo)

    Hura succeeded. Thank you. You are great.
    But one more remark. The date and time is not separated, i.e.
    is August 13, 2022 20.00
    And it could be e.g.
    August 13, 2022 |20.00 or 13 August 2022, 20.00

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    You can replace the space between these 2 strings with a comma or a pipe like this:
    echo wp_kses_post( get_the_time( get_option( 'date_format' ), $post ) . ' | ' . get_the_time( get_option( 'time_format' ), $post ) );

    Or this:
    echo wp_kses_post( get_the_time( get_option( 'date_format' ), $post ) . ', ' . get_the_time( get_option( 'time_format' ), $post ) );

    Thanks!

    Thread Starter saryvo

    (@sariwo)

    Thank you. It’s perfect. World Cup ??

    Roch

    (@rochesterj)

    I’m glad it’s resolved!

    Let us know if you need anything else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘In the panel (widget) “countdown” is not displayed the time of the match.’ is closed to new replies.