[Plugin: Countdown Timer] Remove the word "in" (4 posts)

  1. jockoe
    Posted 7 years ago #

    Can I remove the word "in" so that only the countdown timer is displayed? (instead of, "in xx days xx hours xx minutes xx seconds")

  2. fergbrain
    Posted 7 years ago #

    currently it's hard coded in, so no. unless you feel comfortable modifying php.

    Note: I am on vacation until August.

  3. jockoe
    Posted 7 years ago #

    Thanks for the reply. I'll make a backup and see if I can edit the PHP file without screwing it up.

  4. NeuroDoc
    Posted 6 years ago #

    Find this line in the language variable section:
    echo "fergcorp_countdownTimer_js_language['in'] = '".addslashes(__('in %s', 'afdn_countdownTimer'))."';\n";

    And replace it with:
    echo "fergcorp_countdownTimer_js_language['in'] = '".addslashes(__('%s', 'afdn_countdownTimer'))."';\n";

    The only change is going from 'in %s' to '%s'

    That successfully removed the word in from the output of the timer.

Topic Closed

This topic has been closed to new replies.

About this Topic