• Resolved webnik

    (@noisedude)


    We use the next match countdown, inserted via shortcode, and it has started to add “(On time)” after the team names.

    I’ve tried it on a backup copy of the site with 2020 theme and all plugins disabled except SP, and it still shows.

    I’ve tried multiple events and switch to TBD and back to On time again, but nothing helps.

    Any ideas how to fix this bug?

    WP 5.4.2, PHP 7.3.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Roch

    (@rochesterj)

    Hi there!

    Thanks for reaching out.

    That’s odd. It looks like this is part of the title. The first thing I’d test is disabling all custom coding, which you mentioned that you did already.

    Do you have a test site? I’d like to see how it works with all custom coding disabled and the 2020 (or rookie) theme enabled.

    Another thing to test just to be sure is if the title of that event doesn’t have the event status. Maybe it was added by a plugin and you didn’t notice.

    Thanks!

    Thread Starter webnik

    (@noisedude)

    Hi Roch,

    Thank you. It’s very odd isn’t it?

    Here’s a staging site with 2020 and all plugins disabled except SportsPress. On the production site we’re using the Classic Editor plugin but this is Gutenberg. I can’t see anything relating to this in the Console but I’m not an expert.

    The events all just have the “team [separator] team” format as their titles. Even if I delete a match, whichever event/match is next up, the “(On time)” still appears in the countdown.

    The shortcode used is:

    [countdown show_venue=”0″ show_league=”1″ align=”none”]

    https://staging.tangy-aardvark.flywheelsites.com/

    Thank you!

    Thread Starter webnik

    (@noisedude)

    I should add that I also tried the same shortcode in a new post so that it wouldn’t have any leftover code from page builders or whatever, and the same thing happened:

    https://staging.tangy-aardvark.flywheelsites.com/test-25-8-20/

    • This reply was modified 4 years, 3 months ago by webnik.

    Hello.
    One solution, use the following plugin: https://www.ads-software.com/plugins/real-time-find-and-replace/

    Plugin Contributor Savvas

    (@savvasha)

    Another solution is to copy countdown.php from Sportspress/templates to child-theme/sportspress/ and change the line 141 from:
    <?php echo $title.' ('.$statuses[ $sp_status ].')'; ?>
    to:
    <?php echo $title; ?>

    Thanks,
    Savvas

    Thread Starter webnik

    (@noisedude)

    Thanks Savvas, I’ve done that on the live site and it works fine.

    If it would be helpful for you to work out why this was happening, in case it’s a bug affecting other sites, I’d be happy to give someone from Themeboy access to my staging site. It only started in the last week or two but I don’t think there was a SportsPress update in that time.

    Thanks Plou – I’ll keep that plugin in my back pocket for the future ??

    Roch

    (@rochesterj)

    Hi there!

    I’m glad it’s resolved.

    By how the description of how to solve the problem this is actually by design now. So you need this customization to remove in case you don’t want it.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Countdown shortcode display “(On time)”’ is closed to new replies.