Hi, is it possible to change the default text on “Text next to timer” and “Text to show when timer expire” in every events?
Feb 19,2017 AT 9:13AM - 5 years ago -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
Thanks that works fine. But in this case you will have to re-do that on every new version of count-down plugin, right?
Yes, probably. You will need to find the same line and do it again.