WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jockoe
    Member
    Posted 5 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
    Member
    Posted 5 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
    Member
    Posted 5 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
    Member
    Posted 4 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