Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #465149

    Is there a way to change the text labels for the animated countdown timer? For example could I have it say MIN instead of MINUTES, or SEC instead SECONDS? I found the following code in config-templatebuilder\avia-shortcodes\countdown.php. If this is the right place, then the question becomes: Can this be done in the child theme’s functions.php file so changes don’t get wiped out with theme updates?

    Thanks guys!

    $this->full_time_array = array(
    
    	1 => array("interval" => 1000		, 'class'=>'seconds', 	'label' => __('Second', 'avia_framework' ),	'label_multi' => __('Seconds',  'avia_framework')),
    	2 => array("interval" => 60000		, 'class'=>'minutes', 	'label' => __('Minute', 'avia_framework' ),	'label_multi' => __('Minutes',  'avia_framework')),
    	3 => array("interval" => 3600000	, 'class'=>'hours', 	'label' => __('Hour',  	'avia_framework'),	'label_multi' => __('Hours',  	'avia_framework')),
    	4 => array("interval" => 86400000	, 'class'=>'days', 		'label' => __('Day',  	'avia_framework' ), 'label_multi' => __('Days',  	'avia_framework')),
    	5 => array("interval" => 604800000	, 'class'=>'weeks', 	'label' => __('Week',  	'avia_framework' ),	'label_multi' => __('Weeks',  	'avia_framework')),
    	6 => array("interval" => 2678400000	, 'class'=>'months', 	'label' => __('Month',  'avia_framework' ),	'label_multi' => __('Months',  	'avia_framework')),
    	7 => array("interval" => 31536000000, 'class'=>'years', 	'label' => __('Year',  	'avia_framework' ),	'label_multi' => __('Years',  	'avia_framework'))
    
    );
    
    #465915

    Hi scotthco!

    Yes, that is the correct file and yes, you can apply the changes on child theme. Please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.