WordPress.org

Forums

EZP Coming Soon Page
It´s very cool (2 posts)

  1. pasetti
    Member
    Posted 1 year ago #

    The only problem is that it is not possible to translate days, hours, etc.. the countdown. Who knows, some day, this can be fix.Or you could give me a hint how to do it.

  2. Bob Riley
    Member
    Plugin Author

    Posted 1 year ago #

    Hi pasetti, thanks for the great rating.

    Right now there isn't an 'official way to change language of those although there is a fairly simple method as follows:

    Go into a file editor from your host and go into the \wp-config\plugins\easy-pie-coming-soon\mini-themes\base-responsive\js directory.

    In there is a file called custom.js If you open it you'll see the following text which includes all the days, hrs, min, etc in it:

    $('#countdown').countdown(clockEndDate, function(event) {

    var $this = $(this).html(event.strftime(''

    + '<div id="countdown-days" >%D <span>Days</span></div> '
    + '<div id="countdown-hours" >%H <span>Hrs</span></div> '
    + '<div id="countdown-minutes" >%M <span>Min</span></div> '
    + '<div id="countdown-seconds" >%S <span>Sec</span></div> '));
    });

    Just change the bolded text to the language of your choice and save and that should work for you.

    If you go this route please be sure to change it again after you update the plugin in the future because on the next upgrade that file will be wiped out and a 'fresh' one will be put in there.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • EZP Coming Soon Page
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.