X
28628

Ticket #28628 Public

CountDown addon default text

Hi, is it possible to change the default text on “Text next to timer” and “Text to show when timer expire” in every events?

BY: infaroe - Feb 19,2017 AT 9:13AM - 5 years ago
    • By: infotainerdave Feb 19,2017 AT 6:22PM - Posted 5 years ago - #28646

      Yes and here is how

      go to plugins>>>>>eventon contdown>>>>click edit

      you are looking for this file
      eventon-countdown/includes/class-frontend.php

      Open up a note pad files

      copy and paste the entire contents into the notepads and save as originalfrontend (this is just in case you stuff up and you have the original file to simply copy and paste back in)

      in class frontend scroll down just under mid way you will see this code

      $output .= “<span class=’evocd_timer’>
      <span id='”.$unique_id.”‘ class=’evocd_time’ data-et='”.$different.”‘ data-ex_ux='{$ex_ux}’ data-timetx='”.$time_json.”‘>”;
      //$output .= ‘<span id=”noDays” class=”countdown is-countdown”><span class=”countdown-row countdown-show3″><span class=”countdown-section”><span class=”countdown-amount”>112</span><span class=”countdown-period”>Hours</span></span><span class=”countdown-section”><span class=”countdown-amount”>33</span><span class=”countdown-period”>Minutes</span></span><span class=”countdown-section”><span class=”countdown-amount”>31</span><span class=”countdown-period”>Seconds</span></span></span></span>’;
      $output .= “</span>
      <span class=’evocd_text’ data-ex_tx='”.(!empty($object->pmv[‘_evocd_tx2’])? $object->pmv[‘_evocd_tx2′][0]:’Time has ran out! Better luck next time!‘).”‘>”.( !empty($object->pmv[‘_evocd_tx1’])? $object->pmv[‘_evocd_tx1′][0]:’Till the event close!‘).”</span>
      <em class=’clear’></em>
      </span>”;

      return $output;

      and change the words- make sure you don’t delete the ‘       ‘   as this will stuff it up

    • By: infaroe Feb 20,2017 AT 12:09PM - Posted 5 years ago - #28733

      Thanks that works fine. But in this case you will have to re-do that on every new version of count-down plugin, right?

    • By: Ashish Rai Feb 21,2017 AT 2:41AM - Posted 5 years ago - #28759

      Yes, probably. You will need to find the same line and do it again.

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON